执行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)

posted @ 2021-03-25 11:35  梅梅不想踩坑  阅读(118)  评论(0编辑  收藏  举报