awesome-repositories.com
Blog
awesome-repositories.com

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

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektÜber unsRanking-MethodikPresseMCP-Server
RechtlichesDatenschutzAGB
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
postlight avatar

postlight/parser

0
View on GitHub↗
5,786 Stars·527 Forks·JavaScript·Apache-2.0·1 Aufrufreader.postlight.com↗

Parser

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 to be loaded at runtime for particular domains to replace the generic extraction routine. It also enables CSS selector field injection, letting users extend parsed results with additional custom data by specifying selectors for single or multiple matches via CLI flags. Custom HTTP headers can be attached to every page request for authentication or site-specific requirements.

The parser offers a multi-format output pipeline that converts extracted HTML content into Markdown or plain text through a post-processing step before returning the result. All extraction functionality is exposed through a command-line interface that accepts URL, format, and header flags without requiring any code.

Features

  • Web Article Extraction - Extracts main article content, title, author, and metadata from any web page URL while stripping ads and clutter.
  • Heuristic Extraction Methods - Identifies main content by scoring HTML elements on text density, link ratio, and structural cues to isolate the article body.
  • HTML Parsing Command Line Tools - Runs the extraction from a terminal and outputs the structured result directly to stdout.
  • Web Content Parser CLI - Ships a terminal-based tool for retrieving and parsing web page content with format and header flags.
  • Command Line Interface Design - Exposes all extraction functionality through a command-line tool that accepts URL, format, and header flags.
  • Custom Extractor Implementations - Applies a user-defined extractor script to a URL during parsing without modifying the library's source code.
  • Web-to-Markdown Conversions - Returns the extracted article body as GitHub-flavored Markdown instead of raw HTML.
  • Markdown to Plain Text Converters - Returns the extracted article body as GitHub-flavored Markdown or plain text instead of the default HTML.
  • Multi-Format Output Converters - Returns extracted article body as HTML, Markdown, or plain text based on a user-specified output format.
  • CSS Selector - Adds user-defined fields to parsed output by specifying CSS selectors for single or multiple matches.
  • Extractors - Loads custom JavaScript modules at runtime for particular domains to replace the generic extraction routine.
  • Site-Specific Extractors - Registers a custom extraction script for a specific domain at runtime without modifying the library's source code.
  • CSS Selector Data Extractors - Extends parsed results with additional fields by evaluating user-supplied CSS selectors against the page DOM.
  • Customizable HTML Parsers - Accepts pre-fetched HTML strings and custom site extractors loaded at runtime for domain-specific parsing.
  • CSS Selector Field Injections - Extends the parsed result with custom data by specifying CSS selectors for single or multiple matches via CLI flags.

Star-Verlauf

Star-Verlauf für postlight/parserStar-Verlauf für postlight/parser

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 Parser

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Parser.
  • kepano/defuddleAvatar von kepano

    kepano/defuddle

    3,189Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗3,189
  • 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
  • deathau/markdown-clipperAvatar von deathau

    deathau/markdown-clipper

    3,928Auf GitHub ansehen↗

    markdown-clipper is a browser extension that converts website content into markdown files for offline storage and personal knowledge bases. It functions as a content extractor and HTML to markdown converter that removes layout clutter to isolate primary text. The tool includes a specific integration for sending clipped web content directly into vaults and folders within the Obsidian note-taking application. It also supports batch processing to convert all open browser tabs into individual markdown files. The extension covers a broad range of extraction capabilities, including capturing selec

    JavaScript
    Auf GitHub ansehen↗3,928
  • ericchiang/pupAvatar von ericchiang

    ericchiang/pup

    8,427Auf GitHub ansehen↗

    Pup is a command line tool for extracting and filtering data from HTML documents using CSS selectors. It functions as a parser and selector engine that isolates specific elements based on tags, IDs, classes, and attributes. The project provides utilities for converting selected HTML nodes into plain text, attribute values, or structured JSON objects. It includes a markup formatter that corrects missing tags and applies consistent indentation to improve the readability of HTML documents. The tool handles the retrieval of text content and attributes through a CSS selector engine, supporting co

    HTML
    Auf GitHub ansehen↗8,427
Alle 30 Alternativen zu Parser anzeigen→

Häufig gestellte Fragen

Was macht postlight/parser?

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.

Was sind die Hauptfunktionen von postlight/parser?

Die Hauptfunktionen von postlight/parser sind: Web Article Extraction, Heuristic Extraction Methods, HTML Parsing Command Line Tools, Web Content Parser CLI, Command Line Interface Design, Custom Extractor Implementations, Web-to-Markdown Conversions, Markdown to Plain Text Converters.

Welche Open-Source-Alternativen gibt es zu postlight/parser?

Open-Source-Alternativen zu postlight/parser sind unter anderem: kepano/defuddle — Defuddle is a command line web parser and content extractor designed to isolate the primary article body from web… mozilla/readability — Readability is a JavaScript library designed for web content extraction. It functions as a DOM parsing utility and… deathau/markdown-clipper — markdown-clipper is a browser extension that converts website content into markdown files for offline storage and… ericchiang/pup — Pup is a command line tool for extracting and filtering data from HTML documents using CSS selectors. It functions as… gsh199449/spider — Spider is a web-based platform designed for automated data extraction, providing a centralized framework to collect,… danburzo/percollate — Percollate is a command-line tool for converting web pages and RSS feeds into structured files. It functions as a web…