【发布时间】:2021-09-25 07:06:58
【问题描述】:
我在从下表中提取数据时遇到问题。
https://tirewheelguide.com/sizes/perodua/myvi/2019/
我想提取此示例中的尺寸,它将是 175/65 SR14
<a style="text-decoration: underline;" href="https://tirewheelguide.com/tires/s/175-65-14/">175/65 SR14 </a>
使用scrapy shell函数
response.xpath('/html/body/div[2]/table[1]/tbody/tr[1]/td[1]/a[1]/text()').get()
什么都没有。
你知道我做错了什么吗?
【问题讨论】:
-
你为什么使用
beautufulsoup你接受这个答案吗?
标签: python beautifulsoup scrapy