Hello. I want to write a simple program from Topeka. I wonder if someone has already done, a sequence of actions and what to use. As far as I know, I need to write directly to the swing / java UI and then with requests (how ??, in what language?) Via the API to load into the desktop application. If there is an example, please reset.
1 answer
If I were you, I would make a couple of classes that pull data from some site (generally any) using parsing html (the json library is good in this regard).
a bunch of vidos on the Internet for "parsing html json java". further these classes I will transfer info to your ui.
if you have questions - ask
- Made parsing. The result was in the picture, there was a lot of unnecessary information. Tell me, please, how to extract currency from the result? More precise selection of attributes or doing a search inside the text using Java methods. As I imagine: You need to leave the line with the currency and the line with the value. The value I convert to double and output to UI. So? - FoaGL
- You need to look at the markup of the html site where you can find exactly what you need and extract only that. Obviously - Valentyn Anzhurov
|