码迷,mamicode.com
首页 > 其他好文 > 详细

KeyError: 'Spider not found: test'

时间:2018-10-12 18:25:15      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:rgs   python   sel   col   class   ESS   not found   crawl   使用   

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中定义的爬虫名字和使用的爬虫名字不符

解决:

  修改正确

KeyError: 'Spider not found: test'

标签:rgs   python   sel   col   class   ESS   not found   crawl   使用   

原文地址:https://www.cnblogs.com/hpcm/p/9779738.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!