作者:个信2502907653 | 来源:互联网 | 2023-05-27 12:59
想要爬取汽车之家某个车型的经销商参考价:部分html如下:使用1response.xpath('//*[@class="font-price"]'), 却什么都匹配不到,请问是为什么?使用1respo
想要爬取汽车之家某个车型的经销商参考价:

部分html如下:

使用
1
| response.xpath('//*[@class="font-price"]') |
, 却什么都匹配不到,请问是为什么?
使用
1
| response.xpath('//*[@id="cityDealerPrice"]') |
可以匹配到那个li
但是用
1
| response.xpath('//*[@id="cityDealerPrice"]/span') |
就匹配不到这个li下面包括的span了,难道说span没法匹配?