Trafilatura: The Open-Source Tool Cleaning the Web for AI Training

alex_verem · x · 2026-08-19

Trafilatura is an open-source Python tool that strips raw HTML down to just the main content and metadata (title, author, date), outputting clean text, Markdown, or JSON. It powers major datasets like FineWeb and RefinedWeb and is widely used by top labs for RAG preprocessing. Maintained by a single researcher, it consistently ranks at the top in independent benchmarks for content extraction and is completely free to use without an API key.

Original post →

More from Infra

Infra channel →