提示这个 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 ![技术分享图片](file:///C:\Users\wj49476\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png)
![技术分享图片](file:///C:\Users\wj49476\AppData\Local\Temp\%W@GJ$ACOF(TYDYECOKVDYB.png)
可以禁止提示。
方法一:
requests.packages.urllib3.disable_warnings()
方法二:
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
方法三
import warnings
warnings.filterwarnings("ignore")