解决问题:
requests请求出现警告:
InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised.
解决步骤:
1、加入verify=False参数:
具体如:
response = requests.get(url=url,headers=headers, proxies=proxies,verify=False)
2、关闭安全警告:
这个可以防止代码的前面
from requests.packages.urllib3.exceptions import InsecureRequestWarning
#关闭安全请求警告
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
本文转自 https://blog.csdn.net/weixin_42081389/article/details/90261719,如有侵权,请联系删除。