发痒的twisted.internet.defer异常返回

2024-09-28 01:59:52 发布

您现在位置:Python中文网/ 问答频道 /正文

嘿,我是scrapy的新手,刚写了我的第一篇潦草蜘蛛。但是我一次又一次地得到这个例外

> Traceback (most recent call last):
>     File "/home/afraz/anaconda3/lib/python3.6/site-
>     packages/twisted/internet/defer.py", line 1301, in _inlineCallbacks
>     result = g.send(result)
>     File "/home/afraz/anaconda3/lib/python3.6/site-
>     packages/scrapy/core/downloader/middleware.py", line 43, in 
>     process_request
>     defer.returnValue((yield 
>     download_func(request=request,spider=spider)))
>     File "/home/afraz/anaconda3/lib/python3.6/site-
>     packages/twisted/internet/defer.py", line 1278, in returnValue
>     raise _DefGen_Return(val)
>     twisted.internet.defer._DefGen_Return: <200 
>     http://www.kmart.com.au/product/plain-crew-tee/855808>
>     During handling of the above exception, another exception occurred:

这是我的密码

^{pr2}$

我想在json文件中保存outut租约帮助:)


Tags: inpyhomerequestlibpackageslinetwisted

热门问题