I'm trying to fetch an entire webpage so I can extract some data. I'm using(or trying to use) HtmlUnit.
The result I want to get is the ENTIRELY generated code that being produced from all sources. I don't want the source code. I want a result like the 'inspect element' window in chrome. Any ideas? Is this even possible? Should I use another library?
I'm posting a sample code that DIDN'T help me.
webClient = new WebClient(BrowserVersion.CHROME);
final HtmlPage page = webClient.getPage("https://www.bet365.com");
System.out.println(page.asXml());