adbar/trafilatura
Python & Command-line tool to gather text and metadata on the Web: Crawling, scraping, extraction, output as CSV, JSON, HTML, MD, TXT, XML observed · 2026-08-28
Health v2 · maintenance only
93/100
- Activity 98
- Release rhythm 83
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 84
- age_days: 2704
- days_rel: 33
- days_push: 12
- n_releases_24m: 4
Adoption not part of the score
6709 stars · 421 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Trafilatura is a Python package and command-line tool for crawling the web and extracting main text, metadata, and comments from raw HTML while filtering out boilerplate noise. It outputs structured results in formats such as CSV, JSON, HTML, Markdown, TXT, and XML.
Use cases
- extract article text from web pages
- scrape news articles and metadata
- build text corpora for NLP or LLM training
- convert HTML to markdown or plain text
- crawl sitemaps and RSS feeds for content discovery
- prepare clean web text for RAG pipelines
When to choose
- you need high-precision main-content extraction from HTML without boilerplate
- you want an all-in-one crawl-download-extract pipeline in Python
- you need multiple output formats including JSON, Markdown, and XML
- you are building datasets for LLM or NLP research
When to avoid
- you need a full browser-based scraper for JavaScript-heavy sites
- you require structured extraction of arbitrary page elements rather than main content
- you need a distributed large-scale crawling framework
Facets
library · maturity active
web-scraping parser nlp cli http-client rag web-development crawlers large-language-models data-science python cli cross-platform html-to-markdown text-extraction readability article-extraction corpus-building metadata-extraction news-crawler natural-language-processing
2 sources
- readme: https://github.com/adbar/trafilatura · fetched 2026-08-28 · 4a0b6de17b52
- registry_pypi: https://pypi.org/pypi/trafilatura/json · fetched 2026-08-29 · 0d7d14be21ca
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| adbar/trafilatura | main | 93 |
For agents
markdown · JSON · MCP: product_card(name="adbar/trafilatura")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem