1. 程式人生 > >requests.exceptions.SSLError……Max retries exceeded with url錯誤求助!!!

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

 
 
 
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')")))