mlsanityData to 14 Oct 2026

Leveraging Large Language Models for Web Scraping

arXiv 2406.08246 ↗First posted 12 Jun 2024cs.CL cs.AI cs.LGcited by 3

On the map: Retrieval-augmented generation → RAG pipeline design and evaluation

Abstract (arXiv)

Large Language Models (LLMs) demonstrate remarkable capabilities in replicating human tasks and boosting productivity. However, their direct application for data extraction presents limitations due to a prioritisation of fluency over factual accuracy and a restricted ability to manipulate specific information. Therefore to overcome these limitations, this research leverages the knowledge representation power of pre-trained LLMs and the targeted information access enabled by RAG models, this research investigates a general-purpose accurate data scraping recipe for RAG models designed for language generation. To capture knowledge in a more modular and interpretable way, we use pre trained language models with a latent knowledge retriever, which allows the model to retrieve and attend over documents from a large corpus. We utilised RAG model architecture and did an in-depth analysis of their capabilities under three tasks: (i) Semantic Classification of HTML elements, (ii) Chunking HTML text for effective understanding, and (iii) comparing results from different LLMs and ranking algorithms. While previous work has developed dedicated architectures and training procedures for HTML understanding and extraction, we show that LLMs pre-trained on standard natural language with an addition of effective chunking, searching and ranking algorithms, can prove to be efficient data scraping tool to extract complex data from unstructured text. Future research directions include addressing the challenges of provenance tracking and dynamic knowledge updates within the proposed RAG-based data extraction framework. By overcoming these limitations, this approach holds the potential to revolutionise data extraction from vast repositories of textual information.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 4 of its 8 references that are in the map. First posted on arXiv 12 Jun 2024.

Builds on

4 of 8 references.

References · 4

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  2. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
  3. 2023LLMs Accelerate Annotation for Medical Information Extractioncited by 77
  4. 2021HTLM: Hyper-Text Pre-Training and Prompting of Language Modelscited by 58

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 1; 2026: 1.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Beyond BeautifulSoup: Benchmarking LLM-Powered Web Scraping for Everyday Users
  2. 2026Webscraper: Leverage Multimodal Large Language Models for Index-Content Web Scraping
  3. 2026Beyond a Single Extractor: Re-thinking HTML-to-Text Extraction for LLM Pretraining
  4. 2024HtmlRAG: HTML is Better Than Plain Text for Modeling Retrieved Knowledge in RAG Systems
  5. 2024AutoScraper: A Progressive Understanding Web Agent for Web Scraper Generation
  6. 2025Going over Fine Web with a Fine-Tooth Comb: Technical Report of Indexing Fine Web for Problematic Content Search and Retrieval
  7. 2025ReaderLM-v2: Small Language Model for HTML to Markdown and JSON
  8. 2025Towards Global Retrieval Augmented Generation: A Benchmark for Corpus-Level Reasoning