Abstract
The World Wide Web contains vast amounts of structured information embedded within HTML documents. Extracting this data automatically is a significant challenge due to the complexity and variety of web layouts. This paper presents the Mining Data Records (MDR) algorithm, a novel approach that leverages the HTML tag tree structure to identify and extract data records with high precision and recall. Unlike previous methods that rely on manual labeling or brittle heuristics, MDR identifies data regions and generalized nodes to handle both contiguous and non-contiguous records effectively.
1. Introduction
The proliferation of data-driven web services, such as price comparison engines and job aggregators, necessitates the efficient extraction of structured information from semi-structured web pages. These pages often contain lists of similar items, such as product catalogs or search results, which are visually distinct to human users but structurally complex within the underlying HTML code.
Traditional data extraction methods in the early 2000s faced two primary obstacles: high manual effort required for wrapper induction and low robustness against non-contiguous data records. Non-contiguous records occur when the HTML elements for different items are interleaved in the source code, making linear string-matching techniques ineffective.
2. The MDR Algorithm
The MDR algorithm addresses these challenges by analyzing the hierarchical structure of the HTML tag tree rather than treating the page as a flat string. The core insight is that similar data records are typically children of the same parent node in the tag tree.
2.1 Building the Tag Tree
The first step involves parsing the HTML document into a tag tree. Each node in the tree represents an HTML tag pair (e.g., <table>, <tr>). This structural representation allows the algorithm to focus on the relationships between elements rather than raw text content.
2.2 Mining Data Regions and Records
MDR identifies "data regions"—areas of the page containing a sequence of similar structured objects. Within these regions, it searches for "generalized nodes," which are sequences of one or more sibling nodes that form a single logical data record.
By calculating the structural similarity between sequences of nodes using normalized edit distance, MDR can group related elements even if a single record spans multiple HTML tags (e.g., multiple table rows). This drastically narrows the search space compared to previous string-matching approaches.
3. Experimental Evaluation
The authors evaluated MDR on a diverse dataset of 46 web pages, including major sites like Amazon, eBay, and MapQuest. The dataset specifically included pages with complex layouts and non-contiguous records that typically cause failures in other systems.
3.1 Results
MDR demonstrated exceptional performance compared to contemporary state-of-the-art systems like OMINI and IEPAD:
- Recall: MDR achieved 99.8%, significantly higher than the ~39% achieved by competitors.
- Precision: MDR reached 100%, outperforming OMINI (56%) and IEPAD (67%).
- Efficiency: The algorithm processed pages in less than 0.5 seconds on a 1.4GHz machine, making it suitable for real-time applications.
4. Conclusion and Future Work
The MDR algorithm provides a robust and automated solution for mining structured data from the web. By leveraging the tag tree and the concept of generalized nodes, it overcomes the limitations of manual labeling and linear parsing. While the initial implementation focused on table-related tags common in 2003, the underlying logic is generalizable to modern web structures like div and li elements. Future work involves refining similarity thresholds and heuristics to handle even more diverse data presentations.
Summary updated