99网
您的当前位置:首页证书错误 SSLCertVerificationError

证书错误 SSLCertVerificationError

来源:99网

Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)’)))


是SSL证书错误,

解决方法

加一个verify参数:

import requests

url = "https://12306.cn/mormhweb/"
response = requests.get(url, verify=False)

因篇幅问题不能全部显示,请点此查看更多更全内容