#2323rd of 50 in Data and scraping for AI

trafilatura

Python library and CLI that extracts main text and metadata from web pages

Stars
7.1k
License
Apache-2.0
Last commit
Nov 2026
Last release
Oct 2026
Language
Python
Stars, last 29 weeks+1,423
21 Apr 2026: 5,698 stars28 Apr 2026: 5,760 stars5 May 2026: 5,815 stars12 May 2026: 5,867 stars19 May 2026: 5,922 stars26 May 2026: 5,958 stars2 Jun 2026: 5,987 stars9 Jun 2026: 6,039 stars16 Jun 2026: 6,092 stars23 Jun 2026: 6,132 stars30 Jun 2026: 6,174 stars7 Jul 2026: 6,215 stars14 Jul 2026: 6,256 stars21 Jul 2026: 6,297 stars28 Jul 2026: 6,332 stars4 Aug 2026: 6,382 stars11 Aug 2026: 6,594 stars18 Aug 2026: 6,639 stars25 Aug 2026: 6,684 stars1 Sept 2026: 6,731 stars8 Sept 2026: 6,770 stars15 Sept 2026: 6,807 stars22 Sept 2026: 6,833 stars29 Sept 2026: 6,877 stars6 Oct 2026: 6,913 stars13 Oct 2026: 6,960 stars20 Oct 2026: 6,995 stars27 Oct 2026: 7,023 stars3 Nov 2026: 7,064 stars10 Nov 2026: 7,121 stars

5,698 on 21 Apr 20267,121 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Trafilatura downloads web pages, crawls sitemaps and feeds, and extracts main text, metadata and comments from HTML while dropping headers, footers and boilerplate. It uses its own rule-based extractor with jusText and readability-lxml as fallbacks, and outputs TXT, Markdown, CSV, JSON, HTML, XML or XML-TEI. It runs as a Python package or command-line tool and needs no database.

Who it is for: Developers building text corpora or LLM data pipelines from web pages

Strengths

  • Reports top results in ScrapingHub and Bevendorff et al. 2023 extraction benchmarks
  • Handles discovery too: sitemaps (TXT, XML), feeds (ATOM, JSON, RSS), URL filtering and deduplication
  • Outputs TXT, Markdown, CSV, JSON, HTML, XML and XML-TEI, with metadata fields
  • Works on live URLs or already downloaded HTML; no database required

Weaknesses

  • Rule-based extraction with fallbacks; no LLM or JavaScript rendering mentioned
  • Versions before v1.8.0 are GPLv3+, which matters when pinning old releases
  • Not an AI-native tool; LLM or RAG pipeline integration is left to the user

What it needs

  • no GPU
  • Needs jusText, readability-lxml

Quick answers

Is trafilatura open source?

Yes. Its code is on GitHub under the Apache-2.0 license.

Does trafilatura need a GPU?

No, it runs without one.

Also in Data and scraping for AI

See all 50
Also in Data and scraping for AI
RankProjectScore
1doclingPython library that converts PDFs, Office files and more into structured text70.4k stars+1,818 (+2.6%) in 30 daysMIT92 out of 100
2mineruParses PDFs, images and Office files into Markdown and structured JSON Live demo ↗ (opens in a new tab)83.5k stars+2,196 (+2.7%) in 30 dayscustom license91 out of 100
3opendataloader-pdfPDF parser that outputs Markdown, JSON with bounding boxes, and Tagged PDF30.3k stars+728 (+2.5%) in 30 daysApache-2.090 out of 100
#4agent-reachCLI that gives coding agents read access to login-gated and Chinese web platforms111.1k starsMIT88 out of 100
#5markitdownPython library and CLI that converts office files, PDFs and audio to Markdown194.9k stars+5,738 (+3.0%) in 30 daysMIT87 out of 100