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

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

 

 

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

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

  

posted @ 2020-04-07 15:09  mkay  阅读(1747)  评论(0编辑  收藏  举报