Python常见问题 - python3 requests库提示警告InsecureRequestWa
发布时间:2020-12-20 10:05:49 所属栏目:Python 来源:网络整理
导读:当使用? requests ?库发送请求时报了以下警告 D:python3.6libsite-packagesurllib3connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urll
当使用?requests?库发送请求时报了以下警告D:python3.6libsite-packagesurllib3connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning) ? 如何解决import requests 加上这行代码即可,关闭安全请求警告 requests.packages.urllib3.disable_warnings() ? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |