我正在尝试解析下面的URL。我想得到这个网站上所有价格的输出。第一项是59英镑。在
我检查了元素,发现html如下所示。我相信最好的方法是搜索一个类“sr_gs_rackrate_total”,或者另一个标题以“Price for”开头。在
我怎么能在靓汤里做这个?在
<strong class="price scarcity_color sr_gs_rackrate_price
anim_rack_rate
" title="Price for 1 night £59">
<b>
<span class="sr_gs_rackrate_total">Total: </span>
£59
</b>
</strong>
方法之一是:
如果有多个跨度包含价格,则使用
^{pr2}$相关问题 更多 >
编程相关推荐