python请求https出现这种错误
个人博客:http://www.feastawlisao.com/
欢迎关注个人公众号:pythonORjs
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘rapzh.coms’, port=443): Max retries exceeded with url:…
需要加上参数verify=False
response = requests.get(url,verify=False)
测试发现还需要加上,以下两种方式任意一个都行
requests.packages.urllib3.disable_warnings()
import urllib3.contrib.pyopenssl
urllib3.contrib.pyopenssl.inject_into_urllib3()