lundi 5 novembre 2018

load html with javascript page using java

I would like to load a web page which has javascript using java 1.8. I used httpclient-4.4.1-sources.jar org.apache.http.impl.client.HttpClients which works fine when I need to load a page which has just html. But when I use the same tool with page which has a lot of javascript, it loads just main html and that's it.

How can I get content of the final page rendered by javascript?

I tried: - JSoup - Apache HttpClient - HtmlUnit but it does not work. Plan B would be to use Selenium.

Thanks




Aucun commentaire:

Enregistrer un commentaire