AutoScraper: A Progressive Understanding Web Agent for Web Scraper Generation

Wenhao Huang, Zhouhong Gu, Chenghao Peng, Zhixu Li, Jiaqing Liang +3 more
4/19/2024
28 citations
cs.CLcs.AI

Official code: EZ-hwh/AutoScraper (493 stars, Python, Apache-2.0, last commit 2025-01-03).

Abstract

Web scraping is a powerful technique that extracts data from websites, enabling automated data collection, enhancing data analysis capabilities, and minimizing manual data entry efforts. Existing methods, wrappers-based methods suffer from limited adaptability and scalability when faced with a new website, while language agents, empowered by large language models (LLMs), exhibit poor reusability in diverse web environments.

Show full abstract

In this work, we introduce the paradigm of generating web scrapers with LLMs and propose AutoScraper, a two-stage framework that can handle diverse and changing web environments more efficiently. AutoScraper leverages the hierarchical structure of HTML and similarity across different web pages for generating web scrapers. Besides, we propose a new executability metric for better measuring the performance of web scraper generation tasks. We conduct comprehensive experiments with multiple LLMs and demonstrate the effectiveness of our framework. Resources of this paper can be found at \url{https://github.com/EZ-hwh/AutoScraper}

View on arXivView PDF

Code Implementations(1)

EZ-hwh/AutoScraperOfficial100%
Apache-2.0

Official implement of paper "AutoScraper: A Progressive Understanding Web Agent for Web Scraper Generation" [EMNLP 24']

49345Python, ShellApr 19, 20241 years agoApache-2.0
webscraping

Similar Papers

Cite this paper

@article{huang2024autoscraper,
  title  = {AutoScraper: A Progressive Understanding Web Agent for Web Scraper Generation},
  author = {Wenhao Huang and Zhouhong Gu and Chenghao Peng and Zhixu Li and Jiaqing Liang and Yanghua Xiao and Liqian Wen and Zulong Chen},
  year   = {2024},
  eprint = {2404.12753},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.12753v2}
}

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/2404.12753.svg)](https://codeofpaper.com/paper/2404.12753)

Discussion