Error Msg:
File "c:\python36\lib\site-packages\scrapy\cmdline.py", line 157, in _run_command cmd.run(args, opts) File "c:\python36\lib\site-packages\scrapy\commands\crawl.py", line 57, in run self.crawler_process.crawl(spname, **opts.spargs) File "c:\python36\lib\site-packages\scrapy\crawler.py", line 170, in crawl crawler = self.create_crawler(crawler_or_spidercls) File "c:\python36\lib\site-packages\scrapy\crawler.py", line 198, in create_crawler return self._create_crawler(crawler_or_spidercls) File "c:\python36\lib\site-packages\scrapy\crawler.py", line 202, in _create_crawler spidercls = self.spider_loader.load(spidercls) File "c:\python36\lib\site-packages\scrapy\spiderloader.py", line 71, in load raise KeyError("Spider not found: {}".format(spider_name)) KeyError: 'Spider not found: test'
问题:
spider中定义的爬虫名字和使用的爬虫名字不符
解决:
修改正确