alvarobartt / investpy

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

error when calling get_currency_cross_information #542

Open trekco opened 2 years ago

trekco commented 2 years ago

I need help with the following error.

get_currency_cross_information not working. looks like the div where class='overviewDataTable' does not exit anymore.

x = investpy.get_currency_cross_information(currency_cross='EUR/USD')

getting the error

RuntimeError("ERR#0004: data retrieval error while scraping.")

using investpy 1.0.8

thanks

bitcloudx commented 2 years ago

I don't think your using that correctly. have you tried data = investpy.get_currency_cross_historical_data(currency_cross='EUR/USD', from_date='01/01/2018', to_date='01/01/2019')

or

data = investpy.get_currency_cross_recent_data(currency_cross='EUR/USD')

Those are working just fine. If you going to use get_currency_cross_information I believe you have to call currency_crosses in before that.