1.报错twisted.python.failure.Failure OpenSSL.SSL.Error
当各处代码都编写无误时,运行scrapy报下方错
twisted.web._newclient.ResponseNeverReceived: [<twisted.python.failure.Failure OpenSSL.SSL.Error: [('SSL routines', '', 'unsafe legacy renegotiation disabled')]>]
解决方法
可能原因是pyopenssl和cryptography的版本问题
pip3 uninstall pyopenssl
pip3 install pyopenssl==22.0.0
pip3 uninstall cryptography
pip3 install cryptography==36.0.2
2.管道正常配置,却不能执行piplines中的代码去下载图片
此时没有报错信息,但是没有执行piplines中的代码,例如下载图片可能是没有下载pillow模块。
解决方法
pip3 install pillow