requests.exceptions.SSLError……Max retries exceeded with url錯誤求助!!!

桃妖妖發表於2019-01-06

import requests
head = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36",
        "Connection": "close"}
html = requests.get("https://fanhao.mmdaren.com/avzuopin/",headers=head)
print(html)

這個程式碼爬百度,淘寶,網易等網站都是正常的,唯有這個網站錯誤,網上查了好多,有說新增verify=False,有說”Connection”: “close”,都沒有用,求大神幫解決一下

python3.7

# 錯誤提示
requests.exceptions.SSLError: HTTPSConnectionPool(host=`fanhao.mmdaren.com`, port=443): Max retries exceeded with url: /avzuopin/ (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, `Unexpected EOF`)")))

 

相關文章