Skip to content Skip to sidebar Skip to footer

Reading HTML+JavaScript Using Java

I can read the HTML contents via http (for example, http://www.foo.com) using Java (with URL and BufferedReader classes). However, a couple of them contain JavaScript. My current a

Solution 1:

HtmlUnit has good JavaScript support and it should (almost) parse the HTML as a web browser.


Solution 2:

Cobra (http://lobobrowser.org/cobra/getting-started.jsp) will fit your needs


Solution 3:

For just HTML parsing you can use HTMLParser (org.htmlparser). However from the way you described your problem, it seems you need a browser, because executing is totally different than just parsing. Cheers.


Solution 4:


Post a Comment for "Reading HTML+JavaScript Using Java"