0
<a href="http://link.com">
<div style="background-image:url(https://imageurl.jpeg);">
</div>
</a>
在xpath中是否存在一个允许获取某个css声明值的选择器,同时要记住它是内联样式。使用xpath从内联样式中选择css属性值
在上面的代码示例中,我想检索“background-image”道具的值。
考虑使用“硒的webdriver”或Python“scrapy”模块 – RomanPerekhrest