WebDataExtractor
30 USD
Скачано демо:
27
Опубликован:
13 ноября 2015
Текущая версия:
1.1
Не нашли подходящего робота?
Закажите собственного
на бирже фрилансеров
Перейти на биржу
Закажите собственного
на бирже фрилансеров
Как купить торгового робота или индикатор
Запусти робота на
виртуальном хостинге
виртуальном хостинге
Протестируй индикатор/робота перед покупкой
Хочешь зарабатывать в Маркете?
Как подать продукт, чтобы его покупали
Вы упускаете торговые возможности:
- Бесплатные приложения для трейдинга
- 8 000+ сигналов для копирования
- Экономические новости для анализа финансовых рынков
Регистрация
Вход
Вы принимаете политику сайта и условия использования
Если у вас нет учетной записи, зарегистрируйтесь

Supported CSS selectors
Columns settings file
This is CSV file with 3 columns: name, CSS selector, data locator (from which part of DOM element to extract data).
First line is a header. Every next line defines specific data field.
In addition to standard CSS selectors a special selector '.' (dot) is applicable to select the row element itself.
Data locator is a name of attribute to read data from. If it's empty, data is acquired as a text content of the selected element.
Some examples will follow.
Substitutions settings file (optional)
This is a CSV file with 3 columns: column number (according to the columns configuration above, the numeration is 1-based), what text to find, which text to use instead.
First line is a header. Every next line defines a specific rule.
The purpose of the substitution rules is to unify values in same fields received from different sites, for example, to replace country names with corresponding currencies abbreviations.
Some examples will follow.
Examples Overview
All examples are from the real world, they are taken from setups prepared for some trading sites. This means that they do work at the time of writing, but may fail in the future if a site changes its page formatting. Please consider every example as a "how to" guide, and not as a ready made, everlasting solution.
According to MQL5.com policy any mention of external services (sites) is prohibited. This is why the examples are published without URLs.
Please, note that HTML may contain errors (as many web sites do) and the expert processes them robustly.
Example N1. Economic Calendar M
URL: http://[address is skipped due to MQL5.com policy]
HTML fragment:
To find all rows with economic events the following RowSelector is used: table[id=calendar] tr[id^=calRow]It means searching within the table tag with attribute id equal to "calendar" for all nested tr tags with id starting with "calRow" string.
Suitable selectors and locators for the table cells in every row (contents of the file referenced by ColumnSettingsFile):
Here is some explanations:
Optional substitution rules are (contents of the file specified in SubstitutionSettingsFile):
The column number 2 is Currency, and number 4 is Importance.
Example N2. Economic Calendar F
URL: http://[address is skipped due to MQL5 policy]
HTML fragment:
RowSelector can be: table[id=ecEventsTable] tr[event_attr_ID]
Suitable ColumnSettingsFile:
What it means is that:
SubstitutionSettingsFile:
This time (unlike to the example N1) we need to unify only the column with Importance, because Currencies are filled in in the HTML table by proper Forex abbreviations by default ("NZD" in the example row).
Example N3. Tester report
URL: [local file name]
HTML fragment:
RowSelector is: table ~ table tr + tr
It means: select second table in the file (the first one, which is skipped in the example, contains trading results), then inside the table select every row with preceding row, that actually excludes the first row with headers.
ColumnSettingsFile:
DateTime is extracted by class name "msdate", and all other fields are extracted by their position number in the row (the index in the nth-child selector is 0-based).
There are no substitution rules in this case (SubstitutionSettingsFile is empty).
The source code and in-depth description of the product are published in the article:
If you need technical support and assistance in custom configuration, please, purchase the product.