alvarobartt / investpy

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

Add API to Get Data for Macro Indices #628

Open KIC opened 11 months ago

KIC commented 11 months ago

I want to access the following indices:

looks like this is not working through the investpy.indices api and all the others seem even less suitable, and the investpy.economic_calendar api seems to miss an option to pass the indicator. However, all of them have their event api like:

s.post( 'https://www.investing.com/economic-calendar/more-history', data='eventID=362802&event_attr_ID=56&event_timestamp=2018-03-13', headers=headers ).text

I however can't get the session correctly set up and always get the "you are banned" response. Nevertheless, I still can browse there using a regular browser.