scrapy KeyError: 'Spider not found: doubanmovie' FAQ
来源:互联网 发布:一键瞬狙软件 编辑:程序博客网 时间:2024/05/24 01:35
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "D:\anzhuang\Anaconda\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 682, in runfile execfile(filename, namespace) File "D:\anzhuang\Anaconda\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 71, in execfile exec(compile(scripttext, filename, 'exec'), glob, loc) File "D:/python/doubanmovie/main.py", line 10, in <module> cmdline.execute("scrapy crawl doubanmovie".split()) File "D:\anzhuang\Anaconda\lib\site-packages\scrapy\cmdline.py", line 143, in execute _run_print_help(parser, _run_command, cmd, args, opts) File "D:\anzhuang\Anaconda\lib\site-packages\scrapy\cmdline.py", line 89, in _run_print_help func(*a, **kw) File "D:\anzhuang\Anaconda\lib\site-packages\scrapy\cmdline.py", line 150, in _run_command cmd.run(args, opts) File "D:\anzhuang\Anaconda\lib\site-packages\scrapy\commands\crawl.py", line 57, in run self.crawler_process.crawl(spname, **opts.spargs) File "D:\anzhuang\Anaconda\lib\site-packages\scrapy\crawler.py", line 150, in crawl crawler = self._create_crawler(crawler_or_spidercls) File "D:\anzhuang\Anaconda\lib\site-packages\scrapy\crawler.py", line 165, in _create_crawler spidercls = self.spider_loader.load(spidercls) File "D:\anzhuang\Anaconda\lib\site-packages\scrapy\spiderloader.py", line 40, in load raise KeyError("Spider not found: {}".format(spider_name))KeyError: 'Spider not found: doubanmovie'
问题原因:
spider.py中的name =”douban”,而我在运行时,执行的代码时
scrapy crawl doubanmovie
问题解决:
与name没有保持一致,只需将name修改为doubanmovie就可以正常执行了。
0 0
- scrapy KeyError: 'Spider not found: doubanmovie' FAQ
- 运行Scrapy项目结果出错:KeyError: ‘Spider not found:
- raise KeyError("Spider not found: {}".format(spider_name)) KeyError: 'Spider not found: novelspider'
- scrapy错误之KeyError: 'XXX does not support field: xxx'
- bash: scrapy: command not found
- Scrapy spider代码片段
- Scrapy Spider前奏
- scrapy 入门教程 爬虫 Spider
- Spider based on scrapy
- scrapy爬虫之Spider
- scrapy中spider
- scrapy的spider
- scrapy 之 Spider类
- 爬虫Scrapy-05Spider
- Spider之Scrapy安装介绍
- Scrapy Spider Project Technical Notes
- Scrapy Redis源码 spider分析
- 【spider】之 Scrapy初次体验
- c++必须在类初始化列表中初始化的几种情况
- android View 自动 GONE 问题
- HDU3033 I love sneakers!(分组背包)
- table中td与td显示细线
- Ubuntu安装mysql和简单操作
- scrapy KeyError: 'Spider not found: doubanmovie' FAQ
- MySQL 常用命令
- TabLayout+Fragment android design
- 头文件为什么要加#ifndef #define #endif
- 基于openwrt和s3c2440的无线ap实现
- Ubuntu安装配置Mysql
- ajax三级下拉列表联动
- filezilla sftp
- 我的layerfsd已经开源