trafilatura logo

trafilatura

adbar/trafilatura

Python tool for web text and metadata extraction

GraphCanon updated Sep 30, 2026 · GitHub synced Sep 20, 2026

62views this month

6.7k stars415 forksLast push Aug 15, 2026 Python Apache-2.0

Decision brief

trafilatura is a Python and command-line tool for web crawling, scraping, and text extraction, supporting various output formats including CSV, JSON, HTML, MD, TXT, and XML.

Good fit when

  • When you need a tool that supports multiple output formats, including less common ones like TEI and XML, for detailed text and metadata extraction.
  • For projects requiring a balance between ease of use and customization, as trafilatura offers both command-line and Python API access.

Avoid when

  • When your project strictly requires a tool under the GPL license, as trafilatura is now distributed under the Apache 2.0 license.
  • If your use case demands real-time scraping capabilities, as trafilatura focuses more on accuracy and quality of extracted content rather than speed.

Observed Sep 30, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Very active (3d since push)
As of Aug 18, 2026
Provenance
Not a fork · Personal account
As of Aug 18, 2026
Security (OSV)
No lockfile
As of Jul 11, 2026

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install trafilatura
PyPI

How it fits your stack(9)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

trafilatura is a Python and command-line tool designed for web crawling, scraping, and text extraction, supporting output formats like CSV, JSON, HTML, MD, TXT, XML.

Capability facts

CLI
CLI entrypoint

Source: pyproject.toml:[project.scripts] · Aug 18, 2026

Languages
python

Source: github.language+pyproject.toml · Aug 18, 2026

Categories

Graph entities

Tags

README

License This package is distributed under the Apache 2.0 license. Versions prior to v1.8.0 are under GPLv3+ license.

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.