I'm trying to scrape some information from a webpage. My problem is the return I get doesn't contain what I´m looking for.
If I inspect the source code of the web I find an empty section
<section id="player-controller">
</section>
But if I inspect the the elements I want data from, they appear inside that section
Since it's generated dynamically I tried using HTMLUnit, but I stil can't get it. Maybe I'm looking at this the wrong way.
Is there any way I can get the code with HTMLUnit or should I use a different tool?
Solved
By using HTMLUnit and making the process stop some time before printing the page I got it to printing the missing content
WebClient webclient = new WebClient();
HtmlPage currentPage = webclient.getPage("https://www.dubtrack.fm/join/chilloutroom");
Thread.sleep(2000);
System.out.println(currentPage.asXml());