Trafilatura: A Web Scraping Library and Command-Line Tool for Text Discovery and Extraction

By Adrien Barbaresi. 2021

193 citations recorded by the source corpus.

An essential operation in web corpus construction consists in retaining the desired content while discarding the rest. Another challenge finding one’s way through websites. This article introduces a text discovery and extraction tool published under open-source license. Its installation and use is straightforward, notably from Python and on the command-line. The software allows for main text, comments and metadata extraction, while also providing building blocks for web crawling tasks. A comparative evaluation on real-world data also shows its interest as well as the performance of other available solutions. The contributions of this paper are threefold: it references the software, features a benchmark, and provides a meaningful baseline for similar tasks. The tool performs significantly better than other open-source solutions in this evaluation and in external benchmarks.

Subfields: Artificial Intelligence, Information Systems, Natural Language Processing, Information Extraction

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Colin Raffel
  2. Mohit Bansal
  3. Thomas Wolf
  4. Jianfeng Gao
  5. Luke S. Zettlemoyer
  6. Yejin Choi
  7. Hannaneh Hajishirzi
  8. Noah A. Smith

In Information Systems

  1. Ruxandra-Aimée Cojocaru
  2. Julien Launay
  3. Quentin Malartic
  4. Ebtesam Almazrouei
  5. Alessandro Cappelli
  6. Zhangir Azerbayev
  7. Anton Lozhkov
  8. Guilherme Penedo

In Natural Language Processing

  1. Thomas Wolf
  2. Colin Raffel
  3. Ruxandra-Aimée Cojocaru
  4. Julien Launay
  5. Quentin Malartic
  6. Ebtesam Almazrouei
  7. Alessandro Cappelli
  8. Zhangir Azerbayev

In Information Extraction

  1. Ruxandra-Aimée Cojocaru
  2. Julien Launay
  3. Quentin Malartic
  4. Ebtesam Almazrouei
  5. Alessandro Cappelli
  6. Zhangir Azerbayev
  7. Anton Lozhkov
  8. Guilherme Penedo

Citations in the corpus