首页 > 移动平台 > 详细

禁止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

时间:2018-03-07 19:24:40      阅读:1287      评论:0      收藏:0      [点我收藏+]
 提示这个 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 information, see 技术分享图片
可以禁止提示。
 
方法一:
requests.packages.urllib3.disable_warnings()
 
 

方法二:

import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

 

方法三

 

import warnings
warnings.filterwarnings("ignore")

 

禁止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

原文:https://www.cnblogs.com/ydf0509/p/8524725.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!