51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

Unverified HTTPS request is being made

概述

当遇到未经验证的HTTPS请求提示时,需要屏蔽掉。

InsecureRequestWarning: Unverified HTTPS request is being made to host '127.0.0.1'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  warnings.warn(

解决方法

在import requests下添加

import requests
#解决Unverified HTTPS request is being made
requests.packages.urllib3.disable_warnings()
赞(0)
未经允许不得转载:工具盒子 » Unverified HTTPS request is being made