// devtools · adbar/trafilatura

trafilatura

trafilatura — проект с открытым исходным кодом из категории «Инструменты разработчика» от adbar (adbar/trafilatura на GitHub). У него 6 935 звёзд на GitHub и 452 форка, он распространяется по лицензии Apache-2.0 и последний раз обновлялся на GitHub 6 октября 2026.

Trafilatura — a Python and CLI tool to crawl the web and extract clean text and metadata for corpora and RAG.

★ 6,9 тыс. звёзд⑂ 452 форкаApache-2.0обновлено окт. 2026
▦ визуал — в README этого проекта нет встраиваемого скриншота,
поэтому здесь заглушка. Руководство ниже в любом случае полное.
// факты о проекте

Факты о проекте

Репозиторий
adbar/trafilatura
Звёзды GitHub
6 935
Форки
452
Лицензия
Apache-2.0
Последнее обновление на GitHub
6 октября 2026
Тип страницы
Полное руководство по установке
Официальный сайт
Official site
// как это работает

Как это работает

  1. Clarify your goal

    Decide your source set (URLs, feeds or crawled sites) and the output format your corpus or RAG pipeline expects.

  2. Get the project

    Clone adbar/trafilatura from GitHub (or use the install path in the run steps below) and skim its README for the parts relevant to your goal.

  3. Install and configure

    Install trafilatura from PyPI with pip, as its documentation's installation page describes.

  4. Run your first task

    Fetch one article URL and extract it to Markdown, checking that navigation and ads are gone and metadata (title, date, author fields) is present.

// возможности

Почему его любят

Main-content extraction

Robust, configurable extraction of the key article content and metadata from messy web pages.

Crawling and discovery

Advanced web crawling and text discovery, including feed and sitemap-based gathering for corpus building.

Many output formats

Emit CSV, JSON, HTML, Markdown, TXT or XML to fit corpora, datasets or RAG ingestion.

Parallel processing

Processes online and offline input in parallel, so bulk extraction over large URL lists stays practical.

Benchmark-proven

The most efficient open-source library in ScrapingHub's article-extraction benchmark and the best single tool in a published ROUGE-L comparison.

Library, CLI and R

Use it as a Python library, from the command line, or from R, with the same extraction engine.

Advertisement
// запустите сами

Запустите сами

  1. Clone the repository

    Get the source from the official GitHub repository for trafilatura.

    git clone https://github.com/adbar/trafilatura.git
    cd trafilatura
  2. Install Trafilatura

    Install the package from PyPI per the documentation's installation page linked in the README.

    pip install trafilatura  # see README documentation links for installation details
  3. Extract your first page

    Use the core Python functions from the README to fetch a page and extract its main text.

    python -c "from trafilatura import fetch_url, extract; print(extract(fetch_url('https://example.com/article'))[:500])"  # pattern from README
// сценарии использования

Что можно создать

Advertisement
// вопросы и ответы

Вопросы и ответы

Who maintains trafilatura?

adbar, through the adbar/trafilatura repository, with documentation at trafilatura.readthedocs.io.

Is trafilatura free to use?

Yes — the project is open source under the Apache-2.0 license as recorded for this listing. See the license terms for any conditions on redistribution.

Does trafilatura need a paid API key?

No API keys are needed — extraction runs locally in Python; you are responsible for crawling politely and respecting sites' terms and robots rules.

How does Trafilatura compare to a general scraping framework?

General frameworks fetch pages and leave content cleaning to you. Trafilatura specialises in the extraction step — main text and metadata, benchmarked against other extractors — and pairs well with a separate crawler for discovery.

How do I get started with trafilatura?

Clone the repository (or use the documented installer), follow the install and configure steps on this page, and run the smallest real task first — fetch one article URL and extract it to Markdown, checking that navigation and ads are gone and metadata (title, date, author fields) is present.

// продолжить изучение

Похожие инструменты

Инструменты разработчика

Scrapling

Adaptive web scraping framework in Python — from a single request to a full-scale crawl

★ 86,3 тыс. звёздBSD-3-Clause
Смотреть руководство →
Инструменты разработчика

ddgs

A Python metasearch library aggregating many web search services — plus CLI, API and MCP server

★ 3,0 тыс. звёздMIT
Смотреть руководство →
Инструменты разработчика

Gradio

Build machine-learning web demos in Python within minutes — the fastest way to share a model with the world.

★ 43,7 тыс. звёздApache-2.0
Смотреть руководство →
Инструменты разработчика

langextract

Google's Python library for extracting structured data from unstructured text with LLMs, with grounding

★ 38,9 тыс. звёздApache-2.0
Смотреть руководство →
Инструменты разработчика

Chat2DB

A local-first database client with AI SQL help — 40+ databases, desktop, web, Docker and CLI

★ 28,3 тыс. звёздApache-2.0
Смотреть руководство →
Инструменты разработчика

LlamaFactory

Unified, efficient fine-tuning of 100+ LLMs and VLMs with a CLI and Web UI — ACL 2024

★ 75,4 тыс. звёздApache-2.0
Смотреть руководство →
// альтернативы

Альтернативы: Инструменты разработчика

Другие проекты из категории «Инструменты разработчика» с наибольшим числом звёзд в каталоге LibreAI — реалистичный список альтернатив, если trafilatura вам не подходит.

// ещё в категории devtools

Больше проектов: Инструменты разработчика

Соседние проекты из категории «Инструменты разработчика» в каталоге, ближайшие по числу звёзд к trafilatura — продолжайте изучать полку по обе стороны от него.

Получить trafilatura

Бесплатно и открыто — забирайте исходный код, ставьте звезду репозиторию и начинайте создавать.