当前位置: 移动技术网 > IT编程>脚本编程>Python > requests.exceptions.SSLError……Max retries exceeded with url错误求助!!!

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

2019年01月07日  | 移动技术网IT编程  | 我要评论

好先生续集,贵烟价格表和图片,清潭洞爱丽丝ost


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

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网