python解决SNIMissingWarning和InsecurePlatformWarning警告
Posted kinsomy
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python解决SNIMissingWarning和InsecurePlatformWarning警告相关的知识,希望对你有一定的参考价值。
在想要获取https站点的资源时,会报出SNIMissingWarning和InsecurePlatformWarning警告
SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform.
This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
以上是关于python解决SNIMissingWarning和InsecurePlatformWarning警告的主要内容,如果未能解决你的问题,请参考以下文章
解决:python爬取https站点时SNIMissingWarning和InsecurePlatformWarning
SNIMissingWarning和InsecurePlatformWarning警告