在使用requests库进行请求操作时,发生下面的提示:
/usr/lib/python3/dist-packages/urllib3/connectionpool.py:794: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
InsecureRequestWarning)
解决方法(亲测有效):
在python3代码中添加以下代码即可解决:
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)