首页 > Web开发 > 详细

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

时间:2019-01-06 16:23:02      阅读:459      评论:0      收藏:0      [点我收藏+]

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

 

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

原文:https://www.cnblogs.com/shawone/p/10229066.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!