urllib3 certificate verify failed: unable to get local issuer certificate

取消urllib3打开https链接的ssl验证。加上cert_reqs=ssl.CERT_NONE参数即可

import urllib3

url = "https://www.baidu.com"
urllib3.disable_warnings()
http = urllib3.PoolManager(cert_reqs=ssl.CERT_NONE, assert_hostname=False)
response = http.request("GET", url)
print(response.data)