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
2.忽略警告
(1)
requests.packages.urllib3.disable_warnings
(2)
import warningswarnings.filterwarnings("ignore")
(3)
import urllib3urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)