requests库提示警告:InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate ver

首先请求报443错误

  requests.get(url)

移除SSL认证不报443

  requests.get(url, verify=False)

但是请求抛出警告

  InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is 

这时候在请求前加上 

requests.packages.urllib3.disable_warnings()
requests.get(url, verify=False)


就可以解决

 

posted @ 2021-04-13 18:04  爱吃猫的鱼i  阅读(559)  评论(0编辑  收藏  举报