python3.7 requests请求HTTPS警告解决办法
2018-08-03 15:54 菜鸟Alex 阅读(9103) 评论(0) 编辑 收藏 举报- 警告InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See:...
- Stack Overflow上大牛给出的结局方案加两行代码(新版)
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
- 老版本解决办法
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
这里是urlopen请求https证书验证错误解决办法: https://www.cnblogs.com/adampei-bobo/p/10073728.html