XPath Agent: An Efficient XPath Programming Agent Based on LLM for Web Crawler

Yu Li, Bryce Wang, Xinyu Luan
12/17/2024
3 citations
cs.IRcs.AIcs.SE

Official code: eavae/feilian (27 stars, Python, last commit 2025-01-05).

Abstract

We present XPath Agent, a production-ready XPath programming agent specifically designed for web crawling and web GUI testing. A key feature of XPath Agent is its ability to automatically generate XPath queries from a set of sampled web pages using a single natural language query.

Show full abstract

To demonstrate its effectiveness, we benchmark XPath Agent against a state-of-the-art XPath programming agent across a range of web crawling tasks. Our results show that XPath Agent achieves comparable performance metrics while significantly reducing token usage and improving clock-time efficiency. The well-designed two-stage pipeline allows for seamless integration into existing web crawling or web GUI testing workflows, thereby saving time and effort in manual XPath query development. The source code for XPath Agent is available at https://github.com/eavae/feilian.

View on arXivView PDF

Code Implementations(1)

eavae/feilianOfficial100%

llm based crawler

275Python, PostScriptJul 28, 20241 years ago

Similar Papers

Cite this paper

@article{li2024xpath,
  title  = {XPath Agent: An Efficient XPath Programming Agent Based on LLM for Web Crawler},
  author = {Yu Li and Bryce Wang and Xinyu Luan},
  year   = {2024},
  eprint = {2502.15688},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.15688v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.15688.svg)](https://codeofpaper.com/paper/2502.15688)

Discussion