python requests库提示警告:InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate ver
在利用requests访问链接,有时有有警告InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate ver
解决办法:
Python3访问HTTPS时移除SSL认证:
requests.get(url, verify=False)
如果移除认证后控制台总是抛出警告:
在请求代码之前
执行 requests.packages.urllib3.disable_warnings()
参考:https://blog.csdn.net/qq_35304570/article/details/79826990