View RSS Feed

mql5

Extracting structured data from HTML pages using CSS selectors

Rate this Entry
by , 05-12-2019 at 04:17 PM (665 Views)
      
   
The MetaTrader development environment enables the integration of applications with external data, in particular with the data obtained from the Internet using the WebRequest function. HTML is the most universal and the most frequently used data format on the web. If a public service does not provide an open API for requests or its protocol is difficult to implement in MQL, the desired HTML pages can be parsed. In particular, traders often use various economic calendars. Although the task is not so relevant now, since the platform features the built-in Calendar, some traders may need specific news from specific sites. Also, we sometimes need to analyze deals from a trading HTML report received from third parties.[/QUOTE]

Name:  htmlcss2.png
Views: 37
Size:  18.8 KB

The MQL5 ecosystem provides various solutions to the problem, which however are usually specific and have their limitations. On the other hand, there is kind of "native" and universal method to search and parse data from HTML. This method is connected with the use of CSS selectors. In this article we will consider the MQL5 implementation of this method, as well as examples of their practical use.
more...

Submit "Extracting structured data from HTML pages using CSS selectors" to Google Submit "Extracting structured data from HTML pages using CSS selectors" to del.icio.us Submit "Extracting structured data from HTML pages using CSS selectors" to Digg Submit "Extracting structured data from HTML pages using CSS selectors" to reddit

Categories
Uncategorized

Comments