Python3 requests模块发送HTTPS请求,关闭SSL 验证,控制台会输出以下错误:
InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning)
解决办法:
禁用安全警告信息
import requests requests.packages.urllib3.disable_warnings()