我无法使用scrapy从https://vesti-ukr.com获取页面

问题描述 投票:0回答:1

我无法通过scrapy从https://vesti-ukr.com获取页面。它说:

twisted.python.failure.Failure OpenSSL.SSL.Error: [('SSL routines', 'ssl3_read_bytes', 'sslv3 alert handshake failure')]

我试图使用任何其他DOWNLOADER_CLIENT_TLS_METHOD像“SSLv3”但它不起作用。

scrapy shell https://vesti-ukr.com/feed/1-vse-novosti

对于任何其他网站,我没有使用scrapy的问题。这个我可以用请求(它运行良好)或windows BitsTransfer来搜索这个网站,但我想用scrapy进行,现在我想知道它为什么会发生以及如何在将来修复它。

python web-scraping scrapy
1个回答
1
投票

你能检查一下你的cryptography lib版本吗?以pip freeze为例。

将版本降级到pip install cryptography==1.7.2帮我调用scrapy shell https://vesti-ukr.com/feed/1-vse-novosti而没有ssl错误。

© www.soinside.com 2019 - 2024. All rights reserved.