Download the HTML version of the web page that has been modified using JavaScript

The program I am writing is in Java.

I am writing a small program that will download html web pages and save them. It works easily for base pages that do not use JavaScript. But how can I load the page if I want after the script refreshes it? The page I'm dealing with is actually updated by Ajax, which can be one step more complicated.

I understand that this is probably a complex problem related to setting up any JavaScript runtime environment. I am ready to solve any level of difficulty, I just don’t know exactly how to approach it or where to start.

+4
source share
1

Java. , , javascript, javascript .

- , -, -, , -, .

, Selenium, HtmlUnit PhantomJS

+1

Source: https://habr.com/ru/post/1547520/


All Articles