requests.exceptions.SSLError: HTTPSConnectionPool(host='xs.ytccr.com', port=443): Max retries exceeded with url: /student_api/yt/student/api/appLogin (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify fail
解决方法:
在请求的时候加上一个参数,verify=False,如下所示:
get和post都可以加
requests.get(url,headers=headers,verify=False)