【发布时间】:2016-01-30 04:04:00
【问题描述】:
我有以下代码:
doc = Jsoup.connect("http://www.amazon.com/gp/goldbox").userAgent("Mozilla").timeout(5000).get();
Elements hrefs = doc.select("div.a-row.layer");
System.out.println("Results:"+ hrefs); //I am trying to print out contents but not able to see the output.
问题:想要在类名为“a-row layer”的 div 中显示所有图像 src。但是,我无法看到输出。
我的查询有什么错误?
【问题讨论】:
标签: java html-parsing jsoup html-parser