【发布时间】:2012-04-10 05:34:12
【问题描述】:
这是带有 python 2.7 的 Windows 7
我在一个名为 caps 的目录中有一个 scrapy 项目(这是 scrapy.cfg 所在的位置)
我的蜘蛛位于 caps\caps\spiders\campSpider.py
我进入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'
我是否缺少一些配置项?
【问题讨论】: