摘要:
问题描述 links = sel.xpath('//i[contains(@title,"置顶")]/following-sibling::a/@href').extract() 报错:ValueError: All strings must be XML compatible: Unicode o 阅读全文
posted @ 2019-12-17 18:44
5255号蜘蛛精
阅读(371)
评论(0)
推荐(0)
摘要:
做抓取内容时,发现table里有tbody定位不准的问题。用Xpath Helper反复测试都没有问题。内容如下: //*[@id="b_1_1"]/table/tbody/tr[2]/td[2]/ 在程序里反复测试都得不到正确的值。 修改成: //*[@id="b_1_1"]/table//tr[ 阅读全文
posted @ 2019-12-17 16:38
5255号蜘蛛精
阅读(1038)
评论(0)
推荐(0)

浙公网安备 33010602011771号