Python的第三方库requests提示警告InsecureRequestWarning的问题
2017-07-03 01:28
465 查看
在Python3中使用以下代码报错:
错误代码如下:
方法:
在语句前加上以下代码即可不会被报错:
亲测可用,完美!
requests.get(url, verify=False)
错误代码如下:
InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See:
方法:
在语句前加上以下代码即可不会被报错:
requests.packages.urllib3.disable_warnings()
亲测可用,完美!
相关文章推荐
- Python requests 移除SSL认证,控制台输出InsecureRequestWarning取消方法。
- python爬虫遇到https站点InsecureRequestWarning警告解决方案
- 关于Python的第三方库requests关闭SSL验证后,依然警告致使程序无法执行问题
- python https协议和InsecurePlatformWarning问题
- python解决SNIMissingWarning和InsecurePlatformWarning警告
- python SSLError CERTIFICATE_VERIFY_FAILED InsecureRequestWarning
- python解决SNIMissingWarning和InsecurePlatformWarning警告 在想要获取https站点的资源时,会报出SNIMissingWarning和InsecureP
- python解决SNIMissingWarning和InsecurePlatformWarning警告
- python解决SNIMissingWarning和InsecurePlatformWarning警告
- python问题之requests\packages\urllib3\util\ssl_.py:100: InsecurePlatformWarning
- 禁止requests请求https的提示InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more
- python解决SNIMissingWarning和InsecurePlatformWarning警告
- pip安装模块警告InsecurePlatformWarning: A true SSLContext object is not available.
- pip安装模块警告InsecurePlatformWarning: A true SSLContext object is not available.
- mysqldump提示Warning: Using a password on the command line interface can be insecure.
- python SNIMissingWarning InsecurePlatformWarning
- 关于警告: No mapping found for HTTP request with URI [/spMVC/] in DispatcherServlet with name 'spMVC'的问题
- 解决Python 2.7.x 使用Requests发起https请求时报Warning的问题
- mongoose 连接警告问题(node:148572) DeprecationWarning: `open()` is deprecated in mongoose >= 4.11.0
- 关于vs提示_CRT_SECURE_NO_WARNINGS 警告的问题