【发布时间】:2018-09-09 09:38:46
【问题描述】:
我想从此页面的根据您的投票部分提取@title:https://www.fragrantica.com/perfume/Remy-Latour/Cigar-9351.html
我已获取 HTML,然后在 scrapy shell 上尝试了这行代码,但输出为 None:
response.xpath('//*[@id="userMainNotes"]/div/img/@title).extract_first()
我做错了什么?
【问题讨论】:
标签: python scrapy scrapy-shell