报错关键词
builtins.TypeError: 'NoneType' object is not iterable
start_requests = iter(self.spider.start_requests())
builtins.TypeError: 'NoneType' object is not iterable
报错代码
Unhandled error in Deferred:
Traceback (most recent call last):
File "c:\users\17293\appdata\local\programs\python\python37\lib\site-packages\scrapy\crawler.py", line 192, in crawl
return self._crawl(crawler, *args, **kwargs)
File "c:\users\17293\appdata\local\programs\python\python37\lib\site-packages\scrapy\crawler.py", line 196, in _crawl
d = crawler.crawl(*args, **kwargs)
File "c:\users\17293\appdata\local\programs\python\python37\lib\site-packages\twisted\internet\defer.py", line 1613, in unwindGenerator
return _cancellableInlineCallbacks(gen)
File "c:\users\17293\appdata\local\programs\python\python37\lib\site-packages\twisted\internet\defer.py", line 1529, in _cancellableInlineCallbacks
_inlineCallbacks(None, g, status)
--- <exception caught here> ---
File "c:\users\17293\appdata\local\programs\python\python37\lib\site-packages\twisted\internet\defer.py", line 1418, in _inlineCallbacks
result = g.send(result)
File "c:\users\17293\appdata\local\programs\python\python37\lib\site-packages\scrapy\crawler.py", line 88, in crawl
start_requests = iter(self.spider.start_requests())
builtins.TypeError: 'NoneType' object is not iterable
错误原因 scrapy crawl spier_name -s LOG_FILE=all.log
要把spier_name换成自己的爬虫名字
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。