alvarobartt / investpy

Financial Data Extraction from Investing.com with Python
https://investpy.readthedocs.io/
MIT License
1.59k stars 375 forks source link

.get_stock_historical_data RuntimeError #407

Closed mrkgoh closed 3 years ago

mrkgoh commented 3 years ago

I ran the following code:

price_history_df_ = investpy.get_stock_historical_data(stock='APER',
                                country='malaysia',
                                from_date='01/01/1970',
                                to_date='01/01/2022',
                                order='descending')

and got the following error:


  File "C:\ProgramData\Anaconda3\lib\site-packages\investpy\stocks.py", line 615, in get_stock_historical_data
    raise RuntimeError("ERR#0004: data retrieval error while scraping.")

RuntimeError: ERR#0004: data retrieval error while scraping.

Did investing.com updated their site?