【发布时间】:2015-02-10 04:02:05
【问题描述】:
我目前正在尝试抓取以下网址: http://www.bedbathandbeyond.com/store/product/dyson-dc59-motorhead-cordless-vacuum/1042997979?categoryId=10562
在此页面上,我想提取列出的评论数量。也就是我要提取693这个数字。
这是我当前的 xpath:
sel.xpath('//*[@id="BVRRRatingSummaryLinkReadID"]/a/span/span')
它似乎只返回一个空数组,有人可以建议一个正确的 xpath 吗?
【问题讨论】:
标签: python xpath web-scraping html-parsing scrapy