执行python程序,报如下错误解决方案
一、问题描述
  执行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)
 
                    
                
 
 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号