python:接口请求中出现requests.exceptions.SSLError 和 InsecureRequestWarning的解决办法

1、在请求中加入verify=False,关闭认证---------解决requests.exceptions.SSLError

 2、添加代码----------- 解决InsecureRequestWarning

import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

  

原文地址:https://www.cnblogs.com/erchun/p/12653525.html