A Novel Web Scraping Approach Using the Additional Information Obtained From Web Pages

Web scraping is a process of extracting valuable and interesting text information from web pages. Most of the current studies targeting this task are mostly about automated web data extraction. In the extraction process, these studies first create a DOM tree and then access the necessary data throug...

Full description

Bibliographic Details
Main Author: Erdinc Uzun
Format: Article
Language:English
Published: IEEE 2020-01-01
Series:IEEE Access
Subjects:
Online Access:https://ieeexplore.ieee.org/document/9051800/
id doaj-b2eab4f11a344a4dbd9b241f51643f27
record_format Article
spelling doaj-b2eab4f11a344a4dbd9b241f51643f272021-03-30T01:30:09ZengIEEEIEEE Access2169-35362020-01-018617266174010.1109/ACCESS.2020.29845039051800A Novel Web Scraping Approach Using the Additional Information Obtained From Web PagesErdinc Uzun0https://orcid.org/0000-0003-4351-2244Department of Computer Engineering, Çorlu Faculty of Engineering, Tekirdağ Namık Kemal University, Tekirdağ, TurkeyWeb scraping is a process of extracting valuable and interesting text information from web pages. Most of the current studies targeting this task are mostly about automated web data extraction. In the extraction process, these studies first create a DOM tree and then access the necessary data through this tree. The construction process of this tree increases the time cost depending on the data structure of the DOM Tree. In the current web scraping literature, it is observed that time efficiency is ignored. This study proposes a novel approach, namely UzunExt, which extracts content quickly using the string methods and additional information without creating a DOM Tree. The string methods consist of the following consecutive steps: searching for a given pattern, then calculating the number of closing HTML elements for this pattern, and finally extracting content for the pattern. In the crawling process, our approach collects the additional information, including the starting position for enhancing the searching process, the number of inner tag for improving the extraction process, and tag repetition for terminating the extraction process. The string methods of this novel approach are about 60 times faster than extracting with the DOM-based method. Moreover, using these additional information improves extraction time by 2.35 times compared to using only the string methods. Furthermore, this approach can easily be adapted to other DOM-based studies/parsers in this task to enhance their time efficiencies.https://ieeexplore.ieee.org/document/9051800/Computational efficiencyalgorithm design and analysisweb crawling and scrapingdocument object model
collection DOAJ
language English
format Article
sources DOAJ
author Erdinc Uzun
spellingShingle Erdinc Uzun
A Novel Web Scraping Approach Using the Additional Information Obtained From Web Pages
IEEE Access
Computational efficiency
algorithm design and analysis
web crawling and scraping
document object model
author_facet Erdinc Uzun
author_sort Erdinc Uzun
title A Novel Web Scraping Approach Using the Additional Information Obtained From Web Pages
title_short A Novel Web Scraping Approach Using the Additional Information Obtained From Web Pages
title_full A Novel Web Scraping Approach Using the Additional Information Obtained From Web Pages
title_fullStr A Novel Web Scraping Approach Using the Additional Information Obtained From Web Pages
title_full_unstemmed A Novel Web Scraping Approach Using the Additional Information Obtained From Web Pages
title_sort novel web scraping approach using the additional information obtained from web pages
publisher IEEE
series IEEE Access
issn 2169-3536
publishDate 2020-01-01
description Web scraping is a process of extracting valuable and interesting text information from web pages. Most of the current studies targeting this task are mostly about automated web data extraction. In the extraction process, these studies first create a DOM tree and then access the necessary data through this tree. The construction process of this tree increases the time cost depending on the data structure of the DOM Tree. In the current web scraping literature, it is observed that time efficiency is ignored. This study proposes a novel approach, namely UzunExt, which extracts content quickly using the string methods and additional information without creating a DOM Tree. The string methods consist of the following consecutive steps: searching for a given pattern, then calculating the number of closing HTML elements for this pattern, and finally extracting content for the pattern. In the crawling process, our approach collects the additional information, including the starting position for enhancing the searching process, the number of inner tag for improving the extraction process, and tag repetition for terminating the extraction process. The string methods of this novel approach are about 60 times faster than extracting with the DOM-based method. Moreover, using these additional information improves extraction time by 2.35 times compared to using only the string methods. Furthermore, this approach can easily be adapted to other DOM-based studies/parsers in this task to enhance their time efficiencies.
topic Computational efficiency
algorithm design and analysis
web crawling and scraping
document object model
url https://ieeexplore.ieee.org/document/9051800/
work_keys_str_mv AT erdincuzun anovelwebscrapingapproachusingtheadditionalinformationobtainedfromwebpages
AT erdincuzun novelwebscrapingapproachusingtheadditionalinformationobtainedfromwebpages
_version_ 1724186940853452800