【发布时间】:2019-11-06 06:21:27
【问题描述】:
http://www.missouribotanicalgarden.org/PlantFinder/PlantFinderListResults.aspx?letter=A
jsoup 读取页面后,似乎稍后加载了一些内容? doc.html() 中没有“Abelia chinensis”或列表中没有任何其他元素
Document doc = Jsoup.connect("http://www.missouribotanicalgarden.org/PlantFinder/PlantFinderListResults.aspx?letter=A")
.header("Accept-Encoding", "gzip, deflate")
.userAgent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.21 (KHTML, like Gecko) Chrome/19.0.1042.0 Safari/535.21")
.ignoreContentType(true)
.ignoreHttpErrors(true)
.followRedirects(true)
.timeout(600000)
.maxBodySize(0)/*unlimited body size*/
.get();
responseBody = doc.html();
【问题讨论】:
-
hmm 在这里测试:try.jsoup.org/~kjnlfvCzrxiqaGQqwcszLZswSNg 在这里它可以工作......
标签: jsoup