原文:Scrapy 'module' object has no attribute 'Spider'错误

在 Scrapy入门教程 中,在创建的 dmoz spider.py 文件中是通过 的方式导入。但是用这种方法会出现错误: class DmozSpider scrapy.Spider :AttributeError: module object has no attribute Spider 需要换一种方式导入 就可以啦 ...

2014-06-14 16:30 1 2340 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM