atreadw1492 / yahoo_fin

Scrape stock price history from new (Spring 2017) Yahoo Finance layout
MIT License
292 stars 125 forks source link

SSLerror: HTTPSConnectionPool #52

Open arashmirbagheri opened 3 years ago

arashmirbagheri commented 3 years ago

Hi,

New to this but I am getting these error messages when using yahoo_fin. Searched online to see what the cure is and haven't found anything. I know this is somehow related to making multiple queries within a given period of time. If I wait for a day or two, the methods work again but this is not a solution. Would appreciate it if someone who has solved it helps me out:

SSLError: HTTPSConnectionPool(host='finance.yahoo.com', port=443): Max retries exceeded with url: /quote/QCOM/options?p=QCOM (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)')))