1
我想使用python請求獲取響應。不過,我正面臨SSL握手錯誤。我嘗試了很多解決方案發布在這裏,但似乎沒有任何工作。請幫忙。在此先感謝Python中的SSL握手錯誤(_ssl.c:590)
這是代碼:
import requests
url = "https://androidappsapk.co/download/com.facebook.katana"
requests.get(url, verify = False)
這是我得到的錯誤:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 55, in get
return request('get', url, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 44, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 456, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 559, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 382, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:590)
附: - 我使用Python 2.7.11
服務器似乎有[問題](https://www.ssllabs.com/ssltest/ analyze.html?d = androidappsapk.co&s = 104.18.56.222)與OpenSSL 0.98客戶端。你使用什麼OpenSSL版本? –
我正在使用OpenSSL版本1.0.0 – yaamika