1.使用python.get訪問https的地址是:會有SSL Error
requests.exceptions.SSLError: HTTPSConnectionPool
解決辦法:在url之後添加verify=False
2.訪問https鏈接會有警告InsecureRequestWarning
xxxx.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning)
解決辦法:在代碼前添加一下代碼
import urllib3
from urllib3.exceptions import InsecureRequestWarning
urllib3.disable_warnings(InsecureRequestWarning)
如圖