I decided to write an application for 1 site, I decided to use jsoup to parse the information, but I ran into the problem that some information on the site is stored in java scripts, as a result I get an html page that does not have this information (writes: javascript is disabled), interests the question of how to solve this problem or alternatives) is just starting to work with parsing, thanks in advance.
2 answers
Javascript can not be obtained, but you can try to get the result of its implementation. Most likely, what you see on the page in the browser is the result of a get / post request, respectively, you need to send the same request with the same parameters and you will get your result. Use fiddler2 or the network tab (in chrome) to examine in detail all the requests that your page sends.
|
As an option, you can create a hidden WebView , load the page into it, and then perform JS to collect data from the page.
|