解决Python3 控制台输出InsecureRequestWarning的问题 google hacking web常用语法收集 解决Python3 控制台输出InsecureRequestWarning的问题问题: 使用Python3 requests发送HTTPS请求,已经关闭认证(verify=False)情况下,控制台会输出以下错误: 1InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings 解决方法: 在代码中添加以下代码即可解决: 12import urllib3urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) Python2添加如下代码即可解决: 123from requests.packages.urllib3.exceptions import InsecureRequestWarning# 禁用安全请求警告requests.packages.urllib3.disable_warnings(InsecureRequestWarning) 摘自:(https://www.cnblogs.com/ernana/p/8601789.html) Python Web Python 本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处! google hacking web常用语法收集 上一篇 ubuntu 安装php7.0 xdebug 下一篇 Please enable JavaScript to view the comments