欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

requests.exceptions.SSLError……Max retries exceeded with url错误求助!!!

程序员文章站 2022-05-29 20:25:28
这个代码爬百度,淘宝,网易等网站都是正常的,唯有这个网站错误,网上查了好多,有说添加verify=False,有说"Connection": "close",都没有用,求大神帮解决一下 python3.7 ......

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