There is a web page, on it a block which is loaded with the help of JS only after you click the mouse on the corresponding. button. I also need to programmatically from Java (JVM) to get html code along with this block. So far it only turns out to extract html without the block I need. How can this be done using Java?

PS This JS script does not load data from the server, therefore, it’s impossible to get the data I need just by acc. URL

  • If JS-Scrit is not loaded from the server dynamically, then, obviously, they are already present on the page after its initial download. What are the problems with parsing HTML code? - AseN
  • @ 0xFFh The problem is that with the help of the URL class I extract html, and there I don’t have the data I need , although I saw in their js how the values ​​are directly inserted from it - Andrey Sibirkin
  • I'm not quite experienced in js, but all the data are on html, there is in their js script, and there are a couple of hundred lines of them - Andrey Sibirkin
  • one
    Well, then there can be a lot of reasons: a specific JS script does not load, because the server "thinks" that you are a bot (User-Agent header) or, for example, JS is generated on the fly from it yourself - to begin with, at least set how a JS of interest gets on a specific page - AseN

0