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

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektMCP-ServerÜber unsRanking-MethodikPresse
RechtlichesDatenschutzAGB
© 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·5 Aufrufetrafilatura.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-Verlauf

Star-Verlauf für adbar/trafilaturaStar-Verlauf für adbar/trafilatura

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI

Open-Source-Alternativen zu Trafilatura

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Trafilatura.
  • mozilla/readabilityAvatar von mozilla

    mozilla/readability

    11,298Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗11,298
  • apify/crawlee-pythonAvatar von apify

    apify/crawlee-python

    8,097Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗8,097
  • mendableai/firecrawlAvatar von mendableai

    mendableai/firecrawl

    139,399Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗139,399
  • lorien/web-scrapingAvatar von lorien

    lorien/web-scraping

    7,931Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗7,931
Alle 30 Alternativen zu Trafilatura anzeigen→

Häufig gestellte Fragen

Was macht adbar/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.

Was sind die Hauptfunktionen von adbar/trafilatura?

Die Hauptfunktionen von adbar/trafilatura sind: Full-Text Content Extraction, Extraction Element Filters, Web Crawling, Extraction Mode Selectors, Heuristic Extraction Methods, Metadata Extraction, Web Scrapers, PDF and HTML Content Extraction.

Welche Open-Source-Alternativen gibt es zu adbar/trafilatura?

Open-Source-Alternativen zu adbar/trafilatura sind unter anderem: 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,…