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

Demo.py reports None #116

Closed micksulley closed 1 year ago

micksulley commented 1 year ago

My code has stopped working so I tried demo.py, this is what I see

mick@DeskMint21:~/Documents/Programs/shares/yahoo/yahoofinancials$ python demo.py 
----------------------------------------------------------------
{'MMM': None, 'AAPL': None}
----------------------------------------------------------------
{'MMM': None, 'AAPL': None}
----------------------------------------------------------------
{'MMM': None, 'AAPL': None}
----------------------------------------------------------------
{'MMM': None, 'AAPL': None}
----------------------------------------------------------------
{'MMM': None, 'AAPL': None}
----------------------------------------------------------------
dict_keys(['https://finance.yahoo.com/quote/MMM/financials?p=MMM', 'https://finance.yahoo.com/quote/AAPL/financials?p=AAPL'])
----------------------------------------------------------------
9.964617729187012 seconds
mick@DeskMint21:~/Documents/Programs/shares/yahoo/yahoofinancials$ 
JECSand commented 1 year ago

@micksulley did you try upgrading to v1.9? Yahoo Finance updated their encryption yesterday which broke v1.8.

micksulley commented 1 year ago

That fixed it. I hadn't notice the new release. Many thanks for your help and your work maintaining this. Mick