首页 > 技术文章 > python:接口请求中出现requests.exceptions.SSLError 和 InsecureRequestWarning的解决办法

erchun 2020-04-07 15:09 原文

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

 

 

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

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

  

推荐阅读