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)