Script News Download

Avatar
  • updated

Hello Community,

I have created this Python script that downloads the news from the site www.forexfactory.com and saves it in the directory (C:\Users\your_name\AppData\Roaming\MetaQuotes\Terminal\Common\Files\News\FF\*. csv) that uses CP.

It does not insert the values of "revised" and "revised_time.", the rest of the values are the same as Andrey has in Google Drive.

You can read more about the News Filter

The news are downloaded from:

Image 3258

You need to download Python 3.x and install the plugins run "pip3 install beautifulsoup4" and all others that you do not have installed

Image 3260


CommunityPowerEA_News_Download.py

Avatar

how to use python download by free vpn? 

my isp block forexfactory web 

Avatar
Ulises Cune

Try from another place. Also you have to install all the modules. The latest version works fine.

Avatar
Ulises Cune
Quote from Mayank Gupta

Hi Ulises ,This program fetchs only past event details not the future. Please check.

Thanks for the report. I have corrected quickly so that you can download the news until today. Then I will see to download the news of the future.

CommunityPowerEA_News_Download.py
CommunityPowerEA_News_Download.bat

Avatar
Mayank Gupta
Quote from Ulises Cune

The news page changed the text of the impact of the news. 

This version already works with that change.

CommunityPowerEA_News_Download.bat
CommunityPowerEA_News_Download.py

Hi Ulises ,This program fetchs only past event details not the future. Please check.

Avatar
Ulises Cune

The news page changed the text of the impact of the news. 

This version already works with that change.

CommunityPowerEA_News_Download.bat
CommunityPowerEA_News_Download.py

Avatar
Gulm Veriine

how i feed the news to cp

Avatar
Ulises Cune

cd c:\Python310\Scripts\

pip3 install beautifulsoup4

pip3 install cloudscraper


Avatar
david pendragon

Hi Ulises,

I downloaded the attached file in your post but when I run it in the Command Prompt it shows me this and does not seem to work. 


What should I do in order to make it work?