【发布时间】:2014-12-15 10:23:02
【问题描述】:
请注意,我在 eclipse 和 jsoup 库中使用 java。 我的代码是:
Document doc = null;
String crawUrl = this.getCrawlUrl();
doc = Jsoup.connect(crawUrl).get();
Elements hrefs2=doc.select("html");
System.out.println(hrefs2);
我正在尝试获取特定页面的整个 html 代码,但是当 div 中有类似 div 的内容时,我没有得到它。 如何从特定页面获取整个 html 代码?
【问题讨论】:
标签: java html jsoup web-crawler