requests.exceptions.SSLError: HTTPSConnectionPool:

2019-08-30 22:31发布

This question already has an answer here:

I'm trying to scrape a page and using python requests by

request(url,timeout=10)

getting this error

requests.exceptions.SSLError: 
HTTPSConnectionPool(host='sso.rajasthan.gov.in', port=443): Max retries 
exceeded with url: /signin (Caused by SSLError(SSLError(336445449, '[SSL] PEM lib (_ssl.c:3816)')))

to avoid this i used this

request(url,timeout=1-,verify=True)

raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='xxx.xxxxxxxxx.xxx.xx', port=443): Max retries exceeded with url: /signin (Caused by SSLError(SSLError(336445449, '[SSL] PEM lib (_ssl.c:3816)')))

after filtering the data from but now I can't send next query to the server because its not a secure connection so I needed a solution in which I can verify SSL certificate for that site.

0条回答
登录 后发表回答