【发布时间】:2020-12-09 21:16:32
【问题描述】:
对于一个 img,我得到这个作为回报:
/wcsstore/SafeStorefrontAssetStore/locale/en_GB/Style1/img/email/spacer.gif
我尝试使用 .attr("abs:src") 和 .attr("src") 但都返回错误的网址。
Elements prods = doc.select(".product");
Elements img = prods.get(i).select(".productHeader a img");
String imageUrl = img.attr("src");
【问题讨论】:
标签: java image web-scraping jsoup src