alvarobartt / investpy

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

Retrieving Economic Data #294

Open sobcza11 opened 3 years ago

sobcza11 commented 3 years ago

Hello world,

This is my first GitHub "issue comment" so my apologies if any mistake.

I am not reporting an issue, I am reporting a desire to be able to pull economic data from investing.com.

We can currently pull commodities, bonds, stock etc data but I would like to pull economic data as well; examples below:

https://www.investing.com/economic-calendar/m2-money-stock-366

https://www.investing.com/economic-calendar/ism-manufacturing-pmi-173

This data is useful to me as I can paint a macro view before getting involved with assets.

Again, this is my first post so my apologies if I did not do it properly.

Rand

alvarobartt commented 3 years ago

Hi @sobcza11! As I already told you via LinkedIn, I'll be working on this for the next investpy release, and after some time thinking about how to tackle this I may create a new function so as to let the users search different economic events using Investing.com search engine, something similar to the functionality implemented in investpy.search_quotes().

So on, you should expect something similar to the following functionality implemented in the next investpy release:

import investpy

event = investpy.search_events(text="Japan M2 Money Stock YoY", n_results=1)
print(event)
>>> All the event information etc.

Anyway, make sure to watch this issue as I'll be giving you all the updates from here! 👍🏻

sobcza11 commented 3 years ago

Thanks! I look forward to the release! Cheers again!

knickr commented 2 years ago

I'd like this feature also. The raw data is available in JSON format here using the Economic Event ID (eg 1013 for Australian GDP growth)

https://au.investing.com/economic-calendar/gdp-1013 https://sbcharts.investing.com/events_charts/us/1013.json