Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #36124

Re: Recovering HTML rendered in browser using JSoup

Newsgroups comp.lang.java.programmer
Date 2016-12-18 10:36 -0800
References <8a332d5a-09a2-427a-9646-2960cc9e4c6b@googlegroups.com>
Message-ID <fdd4b5f9-cf37-4e17-a5fd-479e27753980@googlegroups.com> (permalink)
Subject Re: Recovering HTML rendered in browser using JSoup
From sebastian.millies@softwareag.com

Show all headers | View raw


Am Sonntag, 18. Dezember 2016 05:27:17 UTC+1 schrieb sande...@yahoo.com:
> First of all apologies if this is OT.  My question is about the Java Library JSoup, not about the Java language itself.
> 
> Can somebody kindly suggest the proper way to use JSoup on a website like "https://network.axial.net/a/company/business-team-san-francisco/"?
> 
> This website has a lot of Javascripting, and no matter what I do {documentObj.body().data(), documentObj.html(), connectionObj.response().body(), Jsoup.connect(urlStr).userAgent("Mozilla").data("name", "jsoup") etc.}, I am not able to recover the html that is rendered in a browser.
> 
> --SS

JSoup is an HTML parser, not a Javascript library, so I would think it cannot do what you want from it. Have you tried googling this? There are some relevant discussions and suggestions on Stackoverflow, e. g.
http://stackoverflow.com/questions/7488872/page-content-is-loaded-with-javascript-and-jsoup-doesnt-see-it or http://stackoverflow.com/questions/14904776/parse-javascript-with-jsoup

-- Sebastian

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Recovering HTML rendered in browser using JSoup sandeep6699@yahoo.com - 2016-12-17 20:26 -0800
  Re: Recovering HTML rendered in browser using JSoup sebastian.millies@softwareag.com - 2016-12-18 10:36 -0800

csiph-web