gpt4 book ai didi

android - 如何通过 jsoup 从以下 scipt 获取图像

转载 作者:行者123 更新时间:2023-11-30 00:20:29 25 4
gpt4 key购买 nike

我试试这个链接

jSoup to check if a span class exists

但我想通过 jsoup 从以下脚本中获取图像 url。

    <ul class="a-unordered-list a-nostyle a-button-list a-vertical a-spacing-top-micro">
<li class="a-spacing-small item"><span class="a-list-item">
<span class="a-declarative" data-action="thumb-action" data-thumb-action="{&quot;variant&quot;:&quot;MAIN&quot;,&quot;index&quot;:&quot;0&quot;}">
<span class="a-button a-button-selected a-button-thumbnail a-button-toggle a-button-focus"><span class="a-button-inner"><input class="a-button-input" type="submit"><span class="a-button-text" aria-hidden="true">
<img alt="" src="https://images-na.ssl-images-amazon.com/images/I/31XcCgGBePL._SS40_.jpg">
</span></span></span>
</span>
</span></li>

最佳答案

试试这个:

Elements anchors = doc.select("li span img");

关于android - 如何通过 jsoup 从以下 scipt 获取图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46390510/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com