python - scrapy运行时候报错
阿神
阿神 2017-04-17 17:31:00
0
1
534

【raise NotImplementedError NotImplementedError,twisted等报错】

'scrapy.spidermiddlewares.depth.DepthMiddleware']
2016-03-31 08:35:56 [scrapy] INFO: Enabled item pipelines:
[]
2016-03-31 08:35:56 [scrapy] INFO: Spider opened
2016-03-31 08:35:56 [scrapy] INFO: Crawled 0 pages (at 0 pages/min), scraped 0 i
tems (at 0 items/min)
2016-03-31 08:35:56 [scrapy] DEBUG: Telnet console listening on 127.0.0.1:6023
2016-03-31 08:35:57 [scrapy] DEBUG: Crawled (200) <GET http://www.appledaily.com
.tw/robots.txt> (referer: None)
2016-03-31 08:35:59 [scrapy] DEBUG: Crawled (200) <GET http://www.appledaily.com
.tw/realtimenews/section/new> (referer: None)
2016-03-31 08:35:59 [scrapy] ERROR: Spider error processing <GET http://www.appl
edaily.com.tw/realtimenews/section/new> (referer: None)
Traceback (most recent call last):
File "e:\2015 setup\python27\lib\site-packages\twisted-15.5.0-py2.7-win32.egg\
twisted\internet\defer.py", line 588, in _runCallbacks

current.result = callback(current.result, *args, **kw)

File "e:\2015 setup\python27\lib\site-packages\scrapy-1.1.0rc3-py2.7.egg\scrap
y\spiders__init__.py", line 76, in parse

raise NotImplementedError

NotImplementedError
2016-03-31 08:35:59 [scrapy] INFO: Closing spider (finished)
2016-03-31 08:35:59 [scrapy] INFO: Dumping Scrapy stats:
{'downloader/request_bytes': 536,
'downloader/request_count': 2,

阿神
阿神

闭关修行中......

全部回复(1)
洪涛

检查是否重载了Spider的parse方法,如果没有,那么应该会报这个错,见github

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!