一、问题描述
执行python程序报错:requests.exceptions.SSLError: HTTPSConnectionPool(host='xxx.xxx.com', port=443): Max retries exceeded with url: /article/202103232256348173.shtml (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)')))
二、解决方案
请求加参数:verify=False
即:result = requests.post(jianshu_Url, headers=headers,data=data,verify=False)