arXiv:2609.01030cs.IRSep 2026

Manuscript Offprint

arXiv:2609.01030

Web Price Extraction: State of the Art and an Adaptive Browserless Implementation

Evgeniia Kositsyna, Jorge Lloret-Gazo

Abstract

Price extraction from websites is a key task for market monitoring, price comparison, and business analytics in e-commerce. Existing approaches can be broadly divided into four groups, and understanding their trade-offs in accuracy and scalability is essential for selecting suitable extraction strategies. Classical methods rely on manually written wrappers and rule induction from labeled pages, offering high accuracy but adapting poorly to structural changes and requiring considerable maintenance effort. Browser-based methods, using tools such as Selenium and Puppeteer, handle dynamic JavaScript content but consume large computational resources and scale poorly. Browserless approaches retrieve HTML directly via HTTP requests, offering significant gains in speed and cost, but rely on rules calibrated for specific sites. Methods based on machine learning and large language models offer adaptability but require training data and substantial computation.

Our main contribution is an adaptive browserless price extraction system that improves robustness to structural differences between websites. We implemented a baseline architecture combining HTML page fragmentation with syntactic, semantic, and frequency rules, and extended it in two ways: a Bayesian approach that dynamically updates rule weights, and a genetic algorithm that optimizes the system's global parameters. This hybrid scheme increased precision from 77.2% to 87.3% and reduced average per-page processing time by approximately 14% relative to the baseline, confirming it as a competitive alternative to manually tuned browserless solutions and to more resource-intensive browser- or LLM-based methods, offering high extraction accuracy at low computational cost.

1 Introduction

Web data extraction is a method of automatically obtaining structured information from unstructured or semi-structured web sources. The continued growth of online content has made the automated transformation of web pages into structured data a relevant problem for business, scientific and industrial applications.

The global competitor price monitoring market was estimated at USD 1.2 billion in 2024 and is projected to reach USD 2.5 billion by 2033 [1], demonstrating the increasing adoption of automated competitor monitoring and price scraping technologies in e-commerce. Companies use price scraping to monitor competitors' pricing strategies, detect market trends, and automatically adjust their own prices in real time. A practical example of the importance of price monitoring is provided by the study of Assad et al. [2], conducted on pricing data from all German gas stations (over 16,000 stations), some of which switched to algorithmic pricing. Since the exact date of software adoption is unknown, the authors identify the moment of transition through a test for structural breaks across three measures of pricing behaviour simultaneously: the frequency of price changes, the average size of price changes, and the speed of reaction to a competitor's price change. This revealed that, in non-monopoly markets, where a station faces competitors, the adoption of the algorithm increases margins by 9%. In duopoly markets, margins do not change if only one of the two parties adopts the algorithm, but increase by 28% if both switch to algorithmic pricing. Thus, algorithms competing with one another in real time, based on collected competitor price data, effectively converge to higher—that is, less competitive—prices, which has a significant impact on companies' economics. Such systems help online retailers remain competitive, optimise profit margins, and react quickly to changes in customer demand and competitor activity. Therefore web scraping techniques are currently applied in areas such as competitive business intelligence and e-commerce systems.

The objective of this work is to analyse and compare different web scraping methods used for price extraction on the web, evaluating their characteristics, advantages, and limitations. The increasing interest of companies and organisations in monitoring information about competitors' products and automating large-scale data collection has made web scraping an essential tool in many domains. However, the extraction of reliable information from websites remains a challenging problem due to the constant evolution of HTML structures, the widespread use of JavaScript-generated content, and the growing adoption of anti-scraping mechanisms.

Several approaches and tools have been developed to address web data extraction problems. Traditional methods, commonly known as wrappers, consist of manually designed extraction programs tailored to a specific website or domain. To use these methods, it is necessary to analyse the HTML structure beforehand and they are usually precise.

Nevertheless, they present important limitations, such as poor adaptability to structural modifications, high maintenance costs, and significant manual effort when websites change their layouts.

Modern approaches have attempted to overcome these limitations and can generally be divided into three main categories. The first category includes browser-based methods that simulate user navigation through automated browsers such as Selenium or Puppeteer. These approaches are capable of interacting with dynamic content generated by JavaScript and complex user interfaces. However, they often require considerable computational resources, generate high network traffic, and may suffer from scalability issues.

The second category groups browserless methods, which directly access HTML content without rendering a complete browser environment. Tools such as Requests, Beautiful-Soup, and Scrapy belong to this group. Browserless techniques reduce resource consumption, improve execution speed, and simplify large-scale extraction tasks [3]. However, they may face difficulties when dealing with highly dynamic websites or client-side rendering mechanisms.

Finally, methods based on artificial intelligence and machine learning have emerged as a promising alternative. These techniques aim to identify patterns automatically and adapt to changing webpage structures through machine learning models and natural language processing techniques [4]. These approaches could lessen the need for manual configuration and enhance resilience to structural changes. However, they also introduce new challenges related to training complexity, dataset availability, computational cost, and model generalisation.

This work focuses particularly on the comparison between browserless solutions and machine learning approaches for web price extraction. The main idea behind this work is to evaluate whether lightweight browserless architectures can provide competitive performance compared to more adaptive machine learning techniques while maintaining lower computational requirements and implementation complexity.

The main contributions of this work are:

  • a comparative analysis of classical, browser-based, browserless, and AI-driven web scraping methods;

  • the implementation in Python of a browserless price extraction system based on syntactic and semantic rules;

  • the extension of the baseline system with a Bayesian weight update mechanism that individually calibrates the confidence of each rule based on observed extraction outcomes;

  • the further optimisation of system parameters using a genetic algorithm, which tunes the fragment discard threshold and the minimum fragment count for frequency rule

activation;

  • an experimental comparison of three system configurations-baseline, Bayesian-enhanced, and GA-optimised-in terms of precision, coverage, and processing time.

Several challenges are also considered throughout the work, including the handling of dynamic JavaScript-rendered pages, anti-bot protection mechanisms, and the normalisation of price values across different currencies and formats.

The remainder of this work is organised as follows. Section 2 presents the state of the art and introduces the main concepts related to web scraping and price extraction. Section 3 describes the construction of the proposed browserless scraper, including the rule system and the fragmentation pipeline and presents the Bayesian and genetic algorithm extensions. Section 4 presents the experimental evaluation and comparison between the three implemented configurations. Finally, the last sections discuss the conclusions, limitations, and possible directions for future work.

References (44)