requests.exceptions.SSLError……Max retries exceeded with url错误求助!!!
程序员文章站
2023-02-10 23:30:42
这个代码爬百度,淘宝,网易等网站都是正常的,唯有这个网站错误,网上查了好多,有说添加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')")))
上一篇: pycharm导入自定义py文件出错
下一篇: day 22 - 1 面向对象
推荐阅读
-
requests.exceptions.SSLError……Max retries exceeded with url错误求助!!!
-
使用requests爬取报错“Max retries exceeded with url“的解决方法
-
requests.exceptions.SSLError……Max retries exceeded with url错误求助!!!
-
Python requests报错解决办法:Max retries exceeded with url/Name or service not known
-
使用requests爬取报错“Max retries exceeded with url“的解决方法