摘要:
for sel in response.xpath('//ul/li'): item = DmozItem() item['title'] = sel.xpath('a/text()').extract() item['link'] = sel.xpath('a/@href').extract() 阅读全文
posted @ 2016-03-20 13:05
高手教程
阅读(282)
评论(0)
推荐(0)
摘要:
在用scrapy(python2.7)写爬虫的时候 from tutorail.items import DmozItem 这一行死活不成功 也就是出现 Unresolved reference 'tutorial' 的问题 当然,其实不只是爬虫,如果你初次导入包是应该也可能会遇见这个问题! 解决办 阅读全文
posted @ 2016-03-20 13:02
高手教程
阅读(37273)
评论(5)
推荐(6)

浙公网安备 33010602011771号