Content parsing · Official-source research
Trafilatura
Trafilatura is a Python library and CLI for extracting article text and metadata from web HTML.
Visit the Trafilatura website Official site: trafilatura.readthedocs.io. This button opens that address through this directory’s redirect.
Who is suitable and who is not suitable?
Good fit
- For news, blog articles and research corpora; review extraction on representative samples.
Consider the limits
- Not a replacement for a JavaScript browser renderer or interactive login workflow.
Capabilities
The following is grouped by architecture, installation, setup and release notes on the official website and documentation. If the same sentence applies only to a certain operating mode, it will be written in the corresponding group.
Parsing and integration
- extract() defaults to plain text without metadata. with_metadata=True adds metadata; output_format='json' selects JSON. bare_extraction() returns a Document object.
Boundaries and Limitations
Boundaries and Limitations
- Article extraction is the focus; lists, galleries and catalogs can produce different results. Filters and page structure affect output; successful parsing does not prove complete fields.
Acquisition and licensing
Apache-2.0 software has no subscription currency, monthly billing period or trial expiry. Compute, network and external browser costs are separate.
| Distribution | Fee | License | Installation path | Notes |
|---|---|---|---|---|
| Trafilatura | No software subscription fee; running resources are separate. | Apache-2.0 | Python 3.10+ · pip install trafilatura | Follow Apache-2.0 licensing and applicable notice requirements. |
No software subscription fee; running resources are separate.
Usage environment
- Current installation docs require Python 3.10+: pip install trafilatura. Official coverage includes Linux, macOS and Windows.
FAQ
Does include_links=True discover every article URL?
No. It retains links in extracted content, rather than discovering URLs. Hypothetically, for an article list, discover article URLs through sitemaps, feeds or a crawler, then extract each article. When scripts render content, obtain authorized rendered HTML first.
Source
Compiled by Northleaf Studio. Checked 2026-12-03. Source links go directly to the original pages.
- Trafilatura · Installation
Checked 2026-12-03. Official documentation review; not a hands-on test.
- Trafilatura · Python usage
Checked 2026-12-03. Official documentation review; not a hands-on test.
- Trafilatura · Troubleshooting
Checked 2026-12-03. Official documentation review; not a hands-on test.
- Trafilatura · Apache-2.0
Checked 2026-12-03. Official documentation review; not a hands-on test.
Not verified in this review
- Deployment costs and extraction quality on target pages are unverified; no installation or collection was run for this review.