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

2021-10-18 16:15:08 浏览数 (1)

1.Requests的请求默认verify=True,改为False

2.忽略警告 (1)

代码语言:javascript复制
import requests
requests.packages.urllib3.disable_warnings

(2)

代码语言:javascript复制
import warnings
warnings.filterwarnings("ignore")

(3)

代码语言:javascript复制
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

0 人点赞