这是由于Windows 7与Python 2.7Scrapy蜘蛛没有发现错误
我有一个目录中称为盖一个scrapy项目(这是scrapy.cfg是)
我的蜘蛛位于帽\帽\蜘蛛\ campSpider.py
我的CD到scrapy项目并尝试运行
scrapy crawl campSpider -o items.json -t json
我得到蜘蛛无法找到一个错误。类名是campSpider
...
spider = self.crawler.spiders.create(spname, **opts.spargs)
File "c:\Python27\lib\site-packages\scrapy-0.14.0.2841-py2.7-win32.egg\scrapy\spidermanager.py", l
ine 43, in create
raise KeyError("Spider not found: %s" % spider_name)
KeyError: 'Spider not found: campSpider'
我错过了一些配置项?
高兴我花了几个小时试图弄清楚之前看到这个改变:P – cdvv7788 2014-09-24 18:35:53
这是怪异错误我曾经有 – nmu 2017-09-08 14:42:35
对不对?谢谢你的抬头? – 2018-02-04 20:52:15