python3 InsecureRequestWarning解决方法

使用python3 requests发送https请求,已关闭认证(verify=False)情况下,提示:InsecureRequestWarning: Unverified HTTPS request is being made to host

解决方法:在代码中添加以下代码即可

import urllib3

urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

posted @ 2021-10-06 23:09  *默九九*  阅读(926)  评论(0)    收藏  举报