JECSand / yahoofinancials

A powerful financial data module used for pulling data from Yahoo Finance. This module can pull fundamental and technical data for stocks, indexes, currencies, cryptos, ETFs, Mutual Funds, U.S. Treasuries, and commodity futures.
https://pypi.python.org/pypi/yahoofinancials
MIT License
896 stars 214 forks source link

Can't fetch anything #178

Open typhoon71 opened 5 months ago

typhoon71 commented 5 months ago

Tryng to get some data with:

ticker = YahooFinancials('AAPL.MI') 
ticker.get_stock_quote_type_data()

but it stops, and after a long time I get this error (10 of those - I guess it's using 10 threads):

WARNING:urllib3.connectionpool:Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)'))': /consent?brandType=nonEu&gcrumb=AReJ0hM&done=https%3A%2F%2Ffinance.yahoo.com%2F

The error seems to be related to the Oath Privacy Policy, but it's strange ...

Once this started I couldn't get any data; I can still get history data, it's just those other methods don't work.

I did get the get_historical_price_data() for the AAPL.MI ticker a bunch of times, but only in small runs - I shouldn't have triggered any block.

Any idea?

datatalking commented 4 months ago

@typhoon71 This is a long error string so there is lots to try to process. It looks like this is an 'SSLEOFError' try googling the string after that or 'How to fix SSLEOFError in python'