# trafilatura

Python &amp; Command-line tool to gather text and metadata on the Web: Crawling, scraping, extraction, output as CSV, JSON, HTML, MD, TXT, XML

Canonical page: https://www.reposhelf.co.uk/projects/github/adbar/trafilatura.html

- Project ID: adbar/trafilatura
- Source: GitHub
- Original project: https://github.com/adbar/trafilatura
- Description attribution: project author metadata
- Categories: Productivity
- Technologies: Python
- Licence: Apache-2.0
- Repository availability checked: 2026-11-23T13:14:20.018Z
- Demo page loaded: 2026-11-23T16:19:03.740Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> Trafilatura is a comprehensive Python package and command-line tool designed to gather text from the Web and turn raw HTML into structured, meaningful data. It includes all necessary discovery and text processing components to perform web crawling, downloads, scraping, and extraction of main texts, metadata and comments. It aims at staying handy and modular: no database is required, the output can be converted to commonly used formats.

> Going from raw HTML to essential parts, it focuses on the actual content, avoids noise caused by recurring elements \(headers, footers, boilerplate\), and makes sense of the data and metadata. The extractor strikes a balance between limiting noise \(precision\) and including all valid parts \(recall\). It is robust and reasonably fast.

> Trafilatura is widely used across thousands of projects, including by HuggingFace, IBM, Microsoft Research, NVIDIA, the Allen Institute for AI, Stanford, and the Internet Archive.

- Advanced web crawling and text discovery:
- Support for sitemaps \(TXT, XML\) and feeds \(ATOM, JSON, RSS\)
- Smart crawling and URL management \(filtering and deduplication\)
- Parallel processing of online and offline input:
- Live URLs, efficient and polite processing of download queues

## Author-documented requirements and audience

> Trafilatura is a comprehensive Python package and command-line tool designed to gather text from the Web and turn raw HTML into structured, meaningful data. It includes all necessary discovery and text processing components to perform web crawling, downloads, scraping, and extraction of main texts, metadata and comments. It aims at staying handy and modular: no database is required, the output can be converted to commonly used formats.





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/adbar/trafilatura/blob/master/README.md

Extraction checked: 2026-10-23T18:19:53.680Z

Last recorded source update: 2026-11-22T19:52:39.000Z

Saved release: v2.3.1 — 2026-10-06T19:31:30.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=adbar%2Ftrafilatura). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
