alvarobartt / investpy

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

ConnectionError: ERR#0015: error 403, try again later. #632

Open jortiz12 opened 7 months ago

jortiz12 commented 7 months ago

Hello After installing mosyt recent version, and running basic example, I continue to get a connection error. Any advice would be much welcome. Kind regards, Jose

!pip install git+https://github.com/alvarobartt/investpy.git@master

df = investpy.get_stock_historical_data(stock='AAPL', country='United States', from_date='01/01/2010', to_date='01/01/2020') print(df.head())

ConnectionError: ERR#0015: error 403, try again later.

ymyke commented 7 months ago

investpy no longer works because investing.com disallows scraping. You could use https://github.com/ymyke/tessa/ instead.

jortiz12 commented 7 months ago

much appreciated @ymyke !!!

jortiz12 commented 7 months ago

Just a quick comment: I see that TESSA uses Yahoo Finance and Yahoo Finance (via yfinance) Coingecko.

However, I was looking at Investing.com data because some European Bond Futures (e.g. Euro Bund future) are not available in yahoo finance.

Is there any plans to also add Investing.com to TESSA?

Thanks in advance.

ymyke commented 7 months ago

Unfortunately no, because investing.com doesn't allow it.