当前位置 : 主页 > 编程语言 > python >

exceptions.SSLError: HTTPSConnectionPool(host=‘163.com‘, port=443)

来源:互联网 收集:自由互联 发布时间:2022-06-15
1.Requests的请求默认verify=True,改为False 2.忽略警告 (1) import requests requests . packages . urllib3 . disable_warnings (2) import warnings warnings . filterwarnings ( "ignore" ) (3) import urllib3 urllib3.disable_w

1.Requests的请求默认verify=True,改为False
exceptions.SSLError: HTTPSConnectionPool(host=‘163.com‘, port=443)_python
2.忽略警告
(1)

import requests
requests.packages.urllib3.disable_warnings

(2)

import warnings
warnings.filterwarnings("ignore")

(3)

import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)


网友评论