访问https请求出现警告,去掉警告的方法

在顶部引多一个包即可

from requests.packages.urllib3.exceptions import InsecureRequestWarning,InsecurePlatformWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)

原文地址:https://www.cnblogs.com/kaibindirver/p/9931461.html