ranaroussi / yfinance

Download market data from Yahoo! Finance's API
https://aroussi.com/post/python-yahoo-finance
Apache License 2.0
13k stars 2.3k forks source link

Exception when do ticker.info #1356

Closed robinhftw closed 1 year ago

robinhftw commented 1 year ago

I'm using Ubuntu 20.04, Python 3.8.10, yfinance-0.2.6

import yfinance as yf ticker = yf.Ticker("TSLA") ticker.info Traceback (most recent call last): File "", line 1, in File "/home/user/.local/lib/python3.8/site-packages/yfinance/ticker.py", line 142, in info return self.get_info() File "/home/user/.local/lib/python3.8/site-packages/yfinance/base.py", line 1220, in get_info data = self._quote.info File "/home/user/.local/lib/python3.8/site-packages/yfinance/scrapers/quote.py", line 96, in info self._scrape(self.proxy) File "/home/user/.local/lib/python3.8/site-packages/yfinance/scrapers/quote.py", line 125, in _scrape json_data = self._data.get_json_data_stores(proxy=proxy) File "/home/user/.local/lib/python3.8/site-packages/yfinance/data.py", line 40, in wrapped return func(*args, **kwargs) File "/home/user/.local/lib/python3.8/site-packages/yfinance/data.py", line 256, in get_json_data_stores stores = decrypt_cryptojs_aes_stores(data) File "/home/user/.local/lib/python3.8/site-packages/yfinance/data.py", line 190, in decrypt_cryptojs_aes_stores raise Exception("yfinance failed to decrypt Yahoo data response with hardcoded keys, contact developers") Exception: yfinance failed to decrypt Yahoo data response with hardcoded keys, contact developers

What am I doing wrong here?

ValueRaider commented 1 year ago

Duplicate issue