alvarobartt / investpy

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

Unable to retrieve stock historical prices #420

Open srijuk opened 3 years ago

srijuk commented 3 years ago

Hi Alvaro

I am getting the below error while extracting stock data. It used to work fine few months ago. I am revisited this again few days ago and have tried different versions of this. But no luck.

investpy.stocks.get_stock_historical_data(stock = 'RDSa', country = 'netherlands', from_date = '01/06/2021', to_date = '01/07/2021')

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

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

Thanks again for this amazing useful module.

davins90 commented 2 years ago

Hi, I have the same situation and I'm using the last stable version. What should be the problem?

datatalking commented 2 years ago

Is it only this country, this date range, this stock or?