awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
mozilla avatar

mozilla/readability

0
View on GitHub↗
11,298 星标·722 分支·JavaScript·8 次浏览

Readability

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 the identification of readable content, the extraction of the main article body, and the isolation of canonical titles and author information. It utilizes structural analysis and text filtering to distinguish primary content from sidebars and other non-essential elements.

Features

  • Body Content Extractors - Parses HTML to isolate the primary body text while stripping markup and navigation elements.
  • Full-Text Content Extraction - Processes web pages to retrieve a cleaned, full-text version of the article content.
  • Extractability Detection - Evaluate a document using lightweight heuristics to determine if it contains an article suitable for extraction before starting full processing.
  • Heuristic Extraction Methods - Analyzes HTML tag frequency, text density, and structural patterns to locate main content.
  • Web Article Extraction - Isolates the main body text and core content from web pages and news articles.
  • Metadata Extraction - Extracts descriptive page metadata, including Open Graph tags and canonical titles, from the document head.
  • Clutter Removal - Strips non-essential elements like ads and navigation bars using predefined clutter patterns to isolate primary content.
  • Reader Views - Creates simplified page presentations that strip away non-essential elements for focused reading.
  • Content-Aware DOM Parsers - Analyzes document structure and heuristics to identify and extract readable content from webpages.
  • DOM Density Analysis - Analyzes the DOM tree to identify parent containers with high densities of text and paragraph tags.
  • Element Scoring Heuristics - Assigns numerical values to HTML elements based on class names and IDs to identify primary content areas.
  • Pre-Extraction Heuristics - Evaluates document length and structure using simple triggers to avoid processing non-article pages.
  • Web Article Metadata Extractors - Identifies and returns the title and metadata of a webpage for simplified reading views.
  • Extractability Tests - Analyzes HTML structure to determine if a page contains a main body of text suitable for extraction.
  • Text-to-Markup Ratios - Implements density-based filtering to distinguish article bodies from sidebars by analyzing text-to-markup ratios.
  • Extraction Feasibility Analysis - Analyzes the structure of a document to determine if it contains extractable content before performing a full parse.
  • Parsing Tools - Content extraction library.

Star 历史

mozilla/readability 的 Star 历史图表mozilla/readability 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Readability 的开源替代方案

相似的开源项目,按与 Readability 的功能重合度排序。
  • kepano/defuddlekepano 的头像

    kepano/defuddle

    3,189在 GitHub 上查看↗

    Defuddle is a command line web parser and content extractor designed to isolate the primary article body from web pages and convert the result into standardized markdown. It functions as a content cleaner that removes layout clutter, such as sidebars and headers, to retrieve the main text and associated metadata. The tool provides a terminal interface that processes content from remote URLs, local files, or piped HTML streams. It supports custom content targeting, allowing users to specify CSS selectors to manually define the main content area when automatic detection is insufficient. The sy

    TypeScript
    在 GitHub 上查看↗3,189
  • adbar/trafilaturaadbar 的头像

    adbar/trafilatura

    5,319在 GitHub 上查看↗

    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

    Pythonarticle-extractorcorpus-buildercorpus-tools
    在 GitHub 上查看↗5,319
  • generalnewsextractor/generalnewsextractorGeneralNewsExtractor 的头像

    GeneralNewsExtractor/GeneralNewsExtractor

    3,779在 GitHub 上查看↗

    GeneralNewsExtractor is a specialized system for identifying and extracting structured news data through configurable HTML filtering and XPath-based parsing. It functions as an automated news scraper and web page content parser that isolates article bodies and metadata from news webpages. The system uses YAML or JSON configuration files to manage extraction rules and XPath definitions, decoupling the processing logic from site-specific selectors. This allows for targeted noise removal and the isolation of titles, authors, and publication dates through customizable filtering. The tool covers

    Pythonpython3webcrawlerwebspider
    在 GitHub 上查看↗3,779
  • postlight/parserpostlight 的头像

    postlight/parser

    5,786在 GitHub 上查看↗

    Postlight Parser is a command-line tool that extracts the main article content from any web page URL, returning clean structured data including the title, author, date, excerpt, and lead image while stripping away ads and clutter. It uses a readability-based heuristic that scores HTML elements on text density and structural cues to identify the article body, and can accept pre-fetched HTML strings directly for parsing instead of fetching the URL. The tool distinguishes itself through a modular architecture that supports domain-specific extractor overrides, allowing custom JavaScript modules t

    JavaScriptjestlabsmercury
    在 GitHub 上查看↗5,786
查看 Readability 的所有 30 个替代方案→

常见问题解答

mozilla/readability 是做什么的?

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.

mozilla/readability 的主要功能有哪些?

mozilla/readability 的主要功能包括:Body Content Extractors, Full-Text Content Extraction, Extractability Detection, Heuristic Extraction Methods, Web Article Extraction, Metadata Extraction, Clutter Removal, Reader Views。

mozilla/readability 有哪些开源替代品?

mozilla/readability 的开源替代品包括: kepano/defuddle — Defuddle is a command line web parser and content extractor designed to isolate the primary article body from web… adbar/trafilatura — Trafilatura is a Python library and command-line tool for extracting clean, structured text and metadata from web… generalnewsextractor/generalnewsextractor — GeneralNewsExtractor is a specialized system for identifying and extracting structured news data through configurable… postlight/parser — Postlight Parser is a command-line tool that extracts the main article content from any web page URL, returning clean… readyouapp/readyou — ReadYou is a self-hosted reading application and RSS feed aggregator that centralizes content from multiple web… grangier/python-goose — python-goose is a Python library for web scraping and content extraction. It functions as an HTML boilerplate remover…