python3 https 报错:InsecureRequestWarning: Unverified HTTPS request is being made
作者:高景洋 日期:2020-03-03 11:19:52 浏览次数:2401
python3 https 请求 报以下错误:
/usr/local/python3/lib/python3.7/site-packages/urllib3/connectionpool.py:1004: 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 urllib3
在请求请添加 如下一行:
urllib3.disable_warnings()
response = requests.get(download_url, headers=headers, proxies=proxies, timeout=timeout, allow_redirects=allow_redirects, verify=False)
本文永久性链接:
<a href="http://r4.com.cn/art134.aspx">python3 https 报错:InsecureRequestWarning: Unverified HTTPS request is being made</a>
<a href="http://r4.com.cn/art134.aspx">python3 https 报错:InsecureRequestWarning: Unverified HTTPS request is being made</a>
相关文章
- python flask 报错uwsgi: command not found
- centos杀掉停止uwsgi后台进程
- flask路由正则表达式
- python计算时间差
- python3对list group by
- Python Flask Uwsgi 每次更新都要手动重启uwsgi,如何处理
- centos uwsgi 守护运行/背后运行/后台运行的方法
- python3 https 报错:InsecureRequestWarning: Unverified HTTPS request is being made
- python如何引用不同模块下的相同方法(函数)名
- centos pip3 install mysqlclient 报错 “/bin/sh: 1: mysql_config: not found”的解决方法