且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用JSoup提取图像src

更新时间:2023-12-03 20:44:10

您应该能够执行以下操作来获取所有img标签:

You should be able to do something like this to get all img tags:

for (Element e : doc.select("img")) {
    System.out.println(e.attr("src"));
}

这应该选择所有img标签,然后获取src属性并打印到控制台.

This should select all img tags and then grab the src attribute and print to the console.