Lune

EMNLP2024Top-tier venue

AutoScraper: A Progressive Understanding Web Agent for Web Scraper Generation

Wenhao Huang, Zhouhong Gu, Chenghao Peng, Jiaqing Liang, Zhixu Li, Yanghua Xiao, Liqian Wen, Zulong Chen

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. 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. Our work is now open-source. 1

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • AutoData: A Multi-Agent System for Open Web Data Collection cites Reflexion: language agents with verbal reinforcement learning
  • AutoData: A Multi-Agent System for Open Web Data Collection cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Self-Refine: Iterative Refinement with Self-Feedback cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • LiveWeb-IE: A Benchmark For Online Web Information Extraction cites Reflexion: language agents with verbal reinforcement learning
  • LiveWeb-IE: A Benchmark For Online Web Information Extraction cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • R2D2: Remembering, Replaying and Dynamic Decision Making with a Reflective Agentic Memory cites Self-Refine: Iterative Refinement with Self-Feedback
  • R2D2: Remembering, Replaying and Dynamic Decision Making with a Reflective Agentic Memory cites Reflexion: language agents with verbal reinforcement learning
  • R2D2: Remembering, Replaying and Dynamic Decision Making with a Reflective Agentic Memory cites WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agents
  • Reflexion: language agents with verbal reinforcement learning cites Self-Refine: Iterative Refinement with Self-Feedback
  • Reflexion: language agents with verbal reinforcement learning cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
  • Reflexion: language agents with verbal reinforcement learning cites WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agents
  • Synapse: Trajectory-as-Exemplar Prompting with Memory for Computer Control cites Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. AutoData: A Multi-Agent System for Open Web Data CollectionTianyi Ma, Yiyue Qian, Zheyuan Zhang, Zehong Wang et al.NeurIPS 2025 · 28 citations
  2. LiveWeb-IE: A Benchmark For Online Web Information ExtractionSeungbin Yang, Jihwan Kim, Jaemin Choi, Dongjin Kim et al.ICLR 2026 · 1 citation
  3. R2D2: Remembering, Replaying and Dynamic Decision Making with a Reflective Agentic MemoryTenghao Huang, Kinjal Basu, Ibrahim Abdelaziz, Pavan Kapanipathi et al.ACL 2025

Builds on10

  1. Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
  2. Reflexion: language agents with verbal reinforcement learningNoah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan et al.NeurIPS 2023 · 5,828 citations
  3. Self-Refine: Iterative Refinement with Self-FeedbackAman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan et al.NeurIPS 2023 · 4,972 citations
  4. WebShop: Towards Scalable Real-World Web Interaction with Grounded Language AgentsShunyu Yao, Howard Chen, John Yang, Karthik NarasimhanNeurIPS 2022 · 1,477 citations
  5. Synapse: Trajectory-as-Exemplar Prompting with Memory for Computer ControlLongtao Zheng, Rundong Wang, Xinrun Wang, Bo AnICLR 2024 · 132 citations

Related papers

  1. WebCloak: Characterizing and Mitigating Threats From LLM-Driven Web Agents as Intelligent ScrapersXinfeng Li, Tianze Qiu, Yingbin Jin, Lixu Wang et al.S&P 2026 · 13 citations
  2. Understanding HTML with Large Language ModelsIzzeddin Gur, Ofir Nachum, Yingjie Miao, Mustafa Safdari et al.EMNLP Findings 2023 · 35 citations
  3. LLM-Based Web Data Collection for Research Dataset CreationThomas Berkane, Marie-Laure Charpignon, Maimuna S. MajumderEMNLP Findings 2025 · 2 citations
  4. Safe and Scalable Web Agent Learning via Recreated WebsitesHyungjoo Chae, Jungsoo Park, Alan RitterICML 2026
  5. YuraScanner: Leveraging LLMs for Task-driven Web App ScanningAleksei Stafeev, Tim Recktenwald, Gianluca De Stefano, Soheil Khodayari et al.NDSS 2025
Dusk over the sea between two cliffs drawn in fine vertical lines