awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
adbar avatar

adbar/trafilatura

0
View on GitHub↗
5,319 stars·344 forks·Python·apache-2.0·35 viewstrafilatura.readthedocs.io↗

Trafilatura

Trafilatura is a Python library and command-line tool for extracting clean, structured text and metadata from web pages. It downloads HTML content, identifies the main body of text, and strips away navigation, ads, and other boilerplate, returning the core article content along with fields like title, author, date, and URL. The tool can also extract user comments and test whether a page contains extractable text, making it a general-purpose web text extraction library.

What distinguishes Trafilatura from simpler extractors is its configurable extraction pipeline, which offers high-speed, high-precision, or exhaustive modes to balance quality and performance. It supports parallel URL fetching with a configurable worker pool, discovers page URLs by parsing XML sitemaps and RSS/Atom feeds, and can fall back to the Internet Archive when a page is unreachable. An optional language detection module identifies and filters extracted text by language code, and the output can be serialized into plain text, Markdown, CSV, JSON, HTML, XML, and XML-TEI formats for integration into downstream tools.

Beyond single-page extraction, Trafilatura handles batch workflows: it can crawl entire websites via internal link following, process directories of local HTML files, and bulk download a list of URLs. Element-level filtering allows users to keep or discard tables, images, links, and comments during extraction. The tool is available as a Python package and provides a straightforward command-line interface alongside its library API.

Features

  • Full-Text Content Extraction - Extracts the main body text from web pages while stripping navigation, ads, and boilerplate.
  • Extraction Element Filters - Selectively retains or discards HTML elements such as tables, comments, links, and images during extraction based on user flags.
  • Web Crawling - Discovers pages by following internal links from a starting URL with configurable depth.
  • Extraction Mode Selectors - Switches between high-speed, high-precision, and exhaustive extraction modes by adjusting internal heuristics and element filters.
  • Heuristic Extraction Methods - Identifies main article text by analysing tag frequency, text density, and structural heuristics within the parsed HTML tree.
  • Metadata Extraction - Trafilatura extracts metadata fields such as date, title, author, and URL from HTML pages with configurable parameters.
  • Web Scrapers - A command-line tool that extracts text from URLs or HTML files, with options for recursive crawling from sitemaps and feeds.
  • PDF and HTML Content Extraction - Provides a library API for downloading and extracting clean text and metadata from HTML pages.
  • Web Page Retrievers - Fetches raw HTML from URLs, handling encoding and security.
  • Bulk URL Processing - Processes multiple URLs from a file to download and extract text sequentially.
  • Automatic Page Metadata Extraction - Extracts structured metadata like author, title, and date from HTML pages.
  • Content Formats and Exporting - Converts extracted web content to plain text, Markdown, CSV, JSON, HTML, XML, and TEI.
  • Multi-Format Output Converters - Converts extracted web content into plain text, Markdown, CSV, JSON, HTML, XML, and XML-TEI for integration into other tools.
  • Batch Input Processing - Trafilatura reads all HTML files from an input directory and writes extracted results to an output directory.
  • Output Format Rendering - Supports exporting extracted content to text, Markdown, CSV, JSON, HTML, XML, and TEI.
  • URL Batch Processors - Fetches multiple URLs concurrently with deduplication and archive fallback.
  • Content and Language Filtering - Detects extracted text language and filters results to pages matching a specified language code.
  • Command Line Interfaces - Provides a command-line interface for direct extraction from URLs and files.
  • Concurrent Request Pooling - Manages concurrent network requests with a configurable worker pool, deduplicating URLs and handling rate limits.
  • Sitemap Crawlers - Discovers page URLs by parsing sitemaps and RSS/Atom feeds for batch extraction.
  • Feed - Discovers pages by parsing sitemaps and feeds then extracts their content in batch.
  • Feed - Processes sitemaps and web feeds to discover page URLs for extraction.
  • Data Scraping Tools - Python tool for gathering text and metadata from web pages.
  • Web Scraping - Extracts clean text from web pages for training corpora.
  • Web Scraping - Tool to gather text and metadata from the web.

Star history

Star history chart for adbar/trafilaturaStar history chart for adbar/trafilatura

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Trafilatura

These projects share indexed features with Trafilatura. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • mozilla/readabilitymozilla avatar

    mozilla/readability

    11,298View on GitHub↗

    Readability is a JavaScript library designed for web content extraction. It functions as a DOM parsing utility and article metadata extractor that isolates the primary text of a webpage by removing clutter such as advertisements and navigation bars. The library employs a heuristic-based content detector to predict if a webpage contains a parseable article before performing full extraction. It uses a parsing workflow to convert complex HTML documents into a simplified format, facilitating the implementation of distraction-free reader views. The tool covers several capability areas, including

    JavaScript
    View on GitHub↗11,298
  • apify/crawlee-pythonapify avatar

    apify/crawlee-python

    8,097View on GitHub↗

    Crawlee-python is a web crawling framework for building scalable scrapers using Python. It serves as a comprehensive tool for web scraping automation, providing a system to extract structured data from websites using both lightweight HTTP requests and headless browser automation. The framework is distinguished by its anti-bot evasion capabilities, which include browser fingerprint impersonation and tiered proxy rotation to bypass detection systems and solve challenges such as Cloudflare. It also incorporates artificial intelligence for autonomous website navigation and schema-based data extra

    Pythonapifyautomationbeautifulsoup
    View on GitHub↗8,097
  • mendableai/firecrawlmendableai avatar

    mendableai/firecrawl

    139,399View on GitHub↗

    Firecrawl is a headless browser automation tool and web crawling engine designed to extract structured data from the web. It functions as an API that transforms raw website content and documents into clean markdown and JSON formats to serve as context for large language models. The project distinguishes itself by using natural language prompts to translate human instructions into targeted data extraction tasks and browser actions. It can execute interactive page navigation, such as clicking and scrolling, and perform automated web research to retrieve structured data without manual interventi

    TypeScript
    View on GitHub↗139,399
  • lorien/web-scrapinglorien avatar

    lorien/web-scraping

    7,931View on GitHub↗

    This project is a comprehensive resource directory for web data extraction, providing a curated collection of tools and libraries for parsing data, automating browsers, and managing network operations. It serves as a guide for extracting structured information from HTML, XML, JSON, and PDF formats. The toolkit focuses on advanced data collection strategies, including headless browser automation to interact with JavaScript and a suite of network utilities for DNS resolution and WebSocket connections. It specifically covers methods for bypassing bot protections through proxy pool management, us

    Makefile
    View on GitHub↗7,931
Compare all 30 related projects→

Frequently asked questions

What does adbar/trafilatura do?

Trafilatura is a Python library and command-line tool for extracting clean, structured text and metadata from web pages. It downloads HTML content, identifies the main body of text, and strips away navigation, ads, and other boilerplate, returning the core article content along with fields like title, author, date, and URL. The tool can also extract user comments and test whether a page contains extractable text, making it a general-purpose web text extraction library.

What are the main features of adbar/trafilatura?

The main features of adbar/trafilatura are: Full-Text Content Extraction, Extraction Element Filters, Web Crawling, Extraction Mode Selectors, Heuristic Extraction Methods, Metadata Extraction, Web Scrapers, PDF and HTML Content Extraction.

Which projects share features with adbar/trafilatura?

Projects with overlapping indexed features include: mozilla/readability — Readability is a JavaScript library designed for web content extraction. It functions as a DOM parsing utility and… apify/crawlee-python — Crawlee-python is a web crawling framework for building scalable scrapers using Python. It serves as a comprehensive… mendableai/firecrawl — Firecrawl is a headless browser automation tool and web crawling engine designed to extract structured data from the… lorien/web-scraping — This project is a comprehensive resource directory for web data extraction, providing a curated collection of tools… generalnewsextractor/generalnewsextractor — GeneralNewsExtractor is a specialized system for identifying and extracting structured news data through configurable… iflow-ai/iflow-cli — iflow-cli is a command-line interface and suite of AI tools designed for software engineering, workflow orchestration,…