yfinance: JSONDecodeError: Expecting value: line 1 column 1 (char 0) al intentar descargar datos de Yahoo Finance
I have python 3.8.10 and yfinance 0.1.63 installed. I try to import quotes of a value and it returns the error
JSONDecodeError: Expecting value: line 1 column 1 (char 0) when trying to download data from Yahoo Finance
How can i solve this problem. I will appreciate help
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 7
- Comments: 15
Resolved after updating. Run this: pip install yfinance --upgrade --no-cache-dir
Still getting this error:
Exception in thread Thread-212: Traceback (most recent call last): File “C:\Users\aashi\anaconda3\lib\threading.py”, line 932, in _bootstrap_inner self.run() File “C:\Users\aashi\anaconda3\lib\threading.py”, line 870, in run self._target(*self._args, **self.kwargs) File "C:\Users\aashi\anaconda3\lib\site-packages\multitasking_init.py", line 102, in _run_via_pool return callee(*args, **kwargs) File “C:\Users\aashi\anaconda3\lib\site-packages\yfinance\multi.py”, line 169, in _download_one_threaded data = _download_one(ticker, start, end, auto_adjust, back_adjust, File “C:\Users\aashi\anaconda3\lib\site-packages\yfinance\multi.py”, line 184, in download_one return Ticker(ticker).history(period=period, interval=interval, File “C:\Users\aashi\anaconda3\lib\site-packages\yfinance\base.py”, line 162, in history data = data.json() File “C:\Users\aashi\anaconda3\lib\site-packages\requests\models.py”, line 898, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\aashi\anaconda3\lib\json_init.py", line 357, in loads return _default_decoder.decode(s) File “C:\Users\aashi\anaconda3\lib\json\decoder.py”, line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File “C:\Users\aashi\anaconda3\lib\json\decoder.py”, line 355, in raw_decode raise JSONDecodeError(“Expecting value”, s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Any help is appreciated …