[Python] Problems with yfinance package in Python

Discussão em 'Python' iniciado por Stack, Março 17, 2025.

  1. Stack

    Stack Membro Participativo

    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>.

    Continue reading...

Compartilhe esta Página