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

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

时间: 2024-10-07 18:45:33

requests.exceptions.SSLError……Max retries exceeded with url错误求助!!!的相关文章

Max retries exceeded with url错误

进行requests库学习的时候,报Max retries exceeded with url错误,网上查询说是,用下面这个解决方法没用,后来关闭了fiddler后发现就可以了,可能fiddler开的连接数太多了 http连接太多没有关闭导致的. 解决办法: 1.增加重试连接次数 requests.adapters.DEFAULT_RETRIES = 5 1 2.关闭多余的连接 requests使用了urllib3库,默认的http connection是keep-alive的,requests

关于python3.6上传文件时报错:HTTPSConnectionPool(host='httpbin.org', port=443): Max retries exceeded with url: /post (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAIL解决办法

第一个报错: 最近在练习post请求中上传文件时遇到了一个奇葩事情,两台电脑上写了一模一样的代码,一个运行正常,另一个一片红. 最后了解了一下原因以及解决办法.先记录下关键代码: files = {"files":(r"F:\test.txt","xixihaha")} #直接将目标文件内容xixihaha通过文件test.txt进行上传 r = requests.post(url,files=files)print(r.headers) #前边

HTTPConnectionPool(host='xx.xx.xx.xx', port=xx): Max retries exceeded with url:(Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x0000015A25025EB8>...))

HTTPConnectionPool(host='xx.xx.xx.xx', port=xx): Max retries exceeded with url:(Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x0000015A25025EB8>, 'Connection to xx.xx.xx.xx timed out. (connect timeout=10)')) 网查说是http连接太

python使用requests时报错requests.exceptions.SSLError: HTTPSConnectionPool

requests.exceptions.SSLError: HTTPSConnectionPool(host='www.baidu.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)'),)) 错误提示就是上面这样的.首先我找了很多的资料,

requests.exceptions.SSLError: HTTPSConnectionPool报错解决方案

运行脚本报错: Traceback (most recent call last): File "F:/Interface_Study/study_requests/auto_get_post.py", line 24, in <module> res = Calendar_Query().request_main(url,'get',data) File "F:/Interface_Study/study_requests/auto_get_post.py&qu

解决python爬虫requests.exceptions.SSLError: HTTPSConnectionPool(host=&#39;XXX&#39;, port=443)问题

爬虫时报错如下: requests.exceptions.SSLError: HTTPSConnectionPool(host='某某某网站', port=443): Max retries exceeded with url: /login/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify fail

pycharm fiddler requests.exceptions.SSLError

一.SSL问题1.不启用fiddler,直接发https请求,不会有SSL问题(也就是说不想看到SSL问题,关掉fiddler就行) 2.启动fiddler抓包,会出现这个错误:requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) 二.verify参数设置1.Requests的请求默认verify=True2.如果你将 verify设置为 Fals

python:接口请求中出现requests.exceptions.SSLError 和 InsecureRequestWarning的解决办法

1.在请求中加入verify=False,关闭认证---------解决requests.exceptions.SSLError 2.添加代码----------- 解决InsecureRequestWarning import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) 原文地址:https://www.cnblogs.com/erchun/p/12653525.html

python 访问网站时报错:requests.exceptions.SSLError: HTTPSConnectionPool

解决该错误的正确姿势是更新pyOpenSSL库.输入命令: 1 pip install pyopenssl 参见: https://github.com/requests/requests/issues/4246 原文地址:https://www.cnblogs.com/mcgill0217/p/10357003.html