1.取消ssl校验
req=requests.get(url,verify=False)
2.取消告警
import requests.packages.urllib3
import ssl
requests.packages.urllib3.disable_warnings()
sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
sslcontext.verify_mode = ssl.CERT_NONE
1.取消ssl校验
req=requests.get(url,verify=False)
2.取消告警
import requests.packages.urllib3
import ssl
requests.packages.urllib3.disable_warnings()
sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
sslcontext.verify_mode = ssl.CERT_NONE