Clustering of Template-Generated Webpages Using DOM Tree Paths of URLs

Clustering of Template-Generated Webpages Using DOM Tree Paths of URLs

Tanveer I. Bagban, Prakash Jayant Kulkarni
Copyright: © 2022 |Pages: 24
DOI: 10.4018/IJSI.297994
OnDemand:
(Individual Articles)
Available
$37.50
No Current Special Offers
TOTAL SAVINGS: $37.50

Abstract

Web templates are layouts for webpages that enable rapid and easy access to web content. Web data integration solutions use template based wrapper tools to extract product information from e-commerce websites. Given a collection of webpages, wrapper tools are used to discover the template portion of a webpage and extract data from it. These wrapper based data extraction techniques require pages created with the same template belong to the same cluster. Clustering these webpages based on their template is a significant challenge. While there are algorithms for clustering webpages based on their template, they are computationally intensive to be applied at web scale. By examining the DOM tree paths of URLs on a webpage, the proposed work presents a highly scalable methodology for clustering template-generated webpages. Further, the locality sensitive hashing (LSH) technique is used to reduce the cost of clustering. The proposed technique is found to be more precise and cost effective than the existing baseline methods when tested on three separate real-time data sets.
Article Preview
Top

1. Introduction

The World Wide Web (WWW) has established itself as the major repository for publicly accessible information. A template is a common structural layout shared by most of the webpages. The majority of the items shared by webpages, such as the menu and adverts, belong to templates. The structure of the pages displaying product information on a typical e-commerce site is identical. The structural resemblance between webpages is due to the use of the same templates. The Server-side scripts create these webpages by incorporating data from a database into an HTML page template. Although the structure and look of the webpages generated by the same server-side script are similar, the content is distinct. Figure 1 and Figure 2 illustrate two webpages that share a same template. In most cases, the informational content of the webpages generated by templates is formatted and organized. It can be retrieved and kept in databases to be analyzed in a variety of ways. However, because the information is contained within a template, retrieving this information is challenging. Wrappers are employed to address this issue. Wrappers generated manually are time consuming and prone to errors. As a result, wrappers are automatically generated. This is referred to as wrapper induction. Wrapper induction enables highly precise data extraction from template-generated webpages. Understanding the structure of structurally related and template-generated webpages is the first step in wrapper induction. A wrapper induction to function effectively requires the webpages to be clustered in such a way that all webpages generated by the same template are grouped together in the same cluster. For each type of template, simple data extraction rules are written and used to extract data from every webpage generated from that template.

The problem of clustering webpages based on templates is a component of the overall system for extracting information from webpages. After obtaining clusters, a wrapper is executed for each cluster to extract the information contents from webpages for further analysis. The proposed work addresses the problem of clustering template-generated webpages.

The problem of clustering of webpages created from templates has been widely studied by Kim & Shim (2011), Gottron (2008), Vieira et al. (2009), Grigalis & Cenys(2014) and Bagban & Kulkarni(2020). Many solutions with different techniques exist, but they are limited to clustering webpages of the same website and are not scalable at a web-scale level. This paper discusses the design and analysis of the solution to the problem of clustering of webpages belonging to different templates. The set of webpages created from different templates called heterogeneous webpages. The earlier solution is to build a Document Object Model (DOM) (Document Object Model (DOM), 2010) tree of webpages and use tree-edit distance and similarity measuring techniques (Gottron, 2008; Reis et al., 2004). However, this approach is computationally expensive with time complexity of O(n2), with n representing the number of nodes in a DOM tree.

The overall approach is described using webpages collected from a standard dataset referred by Crescenzi et al. (2001) showing baseball players’ information listing. All the webpages presenting players listing information share the same template as shown in below Figure 1 and Figure 2.

Figure 1.

Webpage generated from a template

IJSI.297994.f01
Figure 2.

Webpage generated from a template

IJSI.297994.f02

Complete Article List

Search this Journal:
Reset
Volume 12: 1 Issue (2024)
Volume 11: 1 Issue (2023)
Volume 10: 4 Issues (2022): 2 Released, 2 Forthcoming
Volume 9: 4 Issues (2021)
Volume 8: 4 Issues (2020)
Volume 7: 4 Issues (2019)
Volume 6: 4 Issues (2018)
Volume 5: 4 Issues (2017)
Volume 4: 4 Issues (2016)
Volume 3: 4 Issues (2015)
Volume 2: 4 Issues (2014)
Volume 1: 4 Issues (2013)
View Complete Journal Contents Listing