Automatic XPath generation agents for vertical websites by LLMs

Extracting structured data from web pages has long been a challenging research topic, particularly for domain-specific data on vertical websites. The advent of large language models (LLMs) has introduced new possibilities for this task, enabling high-accuracy information extraction from individual pages. However, due to the substantial costs associated with LLMs, this approach is often economically impractical and difficult to scale in industrial applications. To address these challenges we propose a new framework that leverages a multi-task decomposition strategy, enabling LLMs, despite their limitations in handling structured information, to learn robust XPath expressions from seed pages and apply them to unseen web pages. Experimental results on various structured web data extraction datasets demonstrate that this framework achieves state-of-the-art accuracy for vertical websites with minimal LLM interactions. Furthermore, our approach significantly outperforms the top prompting-based methods, Reflexion and COT, improving F1 scores ranging from 14.84 to 23.86 percentage points across multiple datasets. The proposed framework not only boosts the accuracy and efficiency of structured data extraction from vertical websites, but also holds promise for adaptation across a range of industrial applications focused on extracting information from hierarchical data.

Authors

Institutions

Publication Details

Journal
Journal of King Saud University - Computer and Information Sciences
Published
2025-06-18
DOI
https://doi.org/10.1007/s44443-025-00071-w
Citations
1
Primary Topic
Web Data Mining and Analysis
Type
article
Field-Weighted Citation Impact
3.25
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Automatic XPath generation agents for vertical websites by LLMs

Jie Song, Jing Huang
1 citations
Journal of King Saud University - Computer and Information Sciences
Web Data Mining and Analysis
3.25
article

Automatic XPath generation agents for vertical websites by LLMs

Jie Song, Jing Huang
article en
1 citations

Abstract

Extracting structured data from web pages has long been a challenging research topic, particularly for domain-specific data on vertical websites. The advent of large language models (LLMs) has introduced new possibilities for this task, enabling high-accuracy information extraction from individual pages. However, due to the substantial costs associated with LLMs, this approach is often economically impractical and difficult to scale in industrial applications. To address these challenges we propose a new framework that leverages a multi-task decomposition strategy, enabling LLMs, despite their limitations in handling structured information, to learn robust XPath expressions from seed pages and apply them to unseen web pages. Experimental results on various structured web data extraction datasets demonstrate that this framework achieves state-of-the-art accuracy for vertical websites with minimal LLM interactions. Furthermore, our approach significantly outperforms the top prompting-based methods, Reflexion and COT, improving F1 scores ranging from 14.84 to 23.86 percentage points across multiple datasets. The proposed framework not only boosts the accuracy and efficiency of structured data extraction from vertical websites, but also holds promise for adaptation across a range of industrial applications focused on extracting information from hierarchical data.

Journal of King Saud University - Computer and Information SciencesVol. 37(5)
Chongqing University (CN), Peking University (CN), Beijing Institute of Big Data Research (CN)
Openalex Percentile: Top 8%
Web Data Mining and Analysis
3.25
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Automatic XPath generation agents for vertical websites by LLMs — Jie Song, Jing Huang · Journal of King Saud University - Computer and Information Sciences (2025) | TGRS Research Map | TGRS