I am currently trying to use the yfinance package in Python, but am running into problems. When I run
import yfinance as yf
msft = yf.Ticker('MSFT')
msft.info
However, When I run this code I get the error message of :Exception: yfinance failed to decrypt Yahoo data response. WARNING: No decryption keys could be extracted from JS file. Falling back to backup decrypt methods.
I am unsure what to do, for a month ago, this same code worked for me. I am running jupyter notebooks on mac. I redownloaded python, but am to no avail. I followed the advice from >https://github.com/ranaroussi/yfinance>.
Read through the discussion here.
As to " for a month ago, this same code worked for me", here definitely gives a sense that Yahoo has been actively adjusting things on their end very recently and changes need to be made to accomodate that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With