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
ericchiang avatar

ericchiang/pup

0
View on GitHub↗

Pup

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 complex tags and combinators. It also manages character encoding through automatic detection or specified charsets to ensure correct text rendering during the extraction process.

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

Features

  • CLI Data Extractors - Provides a command line interface for extracting specific elements from HTML using CSS selectors.
  • CSS Selector Engines - Implements a CSS-style selector engine for isolating specific HTML elements based on tags, IDs, classes, and attributes.
  • CSS Selector-Based Element Isolation - Supports complex CSS selectors and combinators to precisely isolate specific HTML elements.
  • HTML Parsing - Provides a parser that constructs a DOM by automatically correcting malformed HTML markup.
  • Selector-Based Element Isolation - Filters HTML documents to find specific elements based on tags, IDs, classes, and attributes.
  • Command Line HTML Parsers - Provides a terminal-based tool for extracting specific data from HTML via CSS selectors.
  • HTML Parsing Command Line Tools - Ships a command line interface for retrieving and filtering specific elements from HTML documents.
  • CSS Selector Data Extractors - Uses precise CSS selectors to filter and collect specific elements from HTML documents.
  • DOM Element Filtering - Implements a CSS selector engine to isolate specific HTML elements within a document.
  • PDF and HTML Content Extraction - Extracts all text content from selected HTML nodes and their children.
  • Web Scraping - Provides utilities for extracting structured data from websites and online sources using CSS selectors.
  • HTML to Text JSON Converters - Converts selected HTML nodes into plain text, attribute values, or structured objects.
  • HTML Formatters - Includes a markup formatter that corrects missing tags and applies consistent indentation to improve HTML readability.
  • HTML Formatting - Controls the visual presentation of HTML data through indentation and colorization.
  • Noise Reduction Filtering - Isolates specific HTML nodes based on tags and classes to filter out noise from webpages.
  • DOM to JSON Serialization - Transforms selected HTML elements into machine-readable JSON objects for interoperability.
  • Markup Cleaning - Includes a utility to fix missing tags and apply consistent indentation to HTML documents.
  • HTML Data Attribute Extraction - Retrieves the values of specific attribute keys from all selected HTML nodes.
  • Terminal Text Formatting - Applies indentation and character escaping to make HTML output readable in a terminal.
  • HTML and XML Processing - Query HTML pages with CSS selectors.
8,430 stars·261 forks·HTML·MIT·17 views

Star history

Star history chart for ericchiang/pupStar history chart for ericchiang/pup

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.

Frequently asked questions

What does ericchiang/pup do?

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.

What are the main features of ericchiang/pup?

The main features of ericchiang/pup are: CLI Data Extractors, CSS Selector Engines, CSS Selector-Based Element Isolation, HTML Parsing, Selector-Based Element Isolation, Command Line HTML Parsers, HTML Parsing Command Line Tools, CSS Selector Data Extractors.

Which projects share features with ericchiang/pup?

Projects with overlapping indexed features include: mgdm/htmlq — htmlq is a suite of command-line utilities for querying and extracting data from HTML documents using CSS selectors.… scinfu/swiftsoup — SwiftSoup is a cross-platform HTML processing library for Swift that converts raw HTML or XML strings and files into a… jquery/sizzle — A sizzlin' hot selector engine. psf/requests-html — requests-html is a Python HTML parsing library and web scraping framework. It functions as an asynchronous HTTP client… cheeriojs/cheerio — Cheerio is an HTML and XML parsing library and server-side DOM implementation. It functions as a markup manipulation… paquettg/php-html-parser — PHP HTML Parser is a server-side programming library and DOM parser designed to ingest markup documents and structure…

Projects sharing features with Pup

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

    mgdm/htmlq

    7,586View on GitHub↗

    htmlq is a suite of command-line utilities for querying and extracting data from HTML documents using CSS selectors. It functions as a query language tool for HTML structures and attributes, providing a way to retrieve specific information from documents via the terminal. The tool provides capabilities for extracting text content, specific HTML attributes, and document fragments. It includes an HTML document formatter for cleaning and reformatting output with consistent indentation, as well as utilities for stripping tags to isolate plain text. The software handles structural HTML processing

    Rust
    View on GitHub↗7,586
  • scinfu/swiftsoupscinfu avatar

    scinfu/SwiftSoup

    5,135View on GitHub↗

    SwiftSoup is a cross-platform HTML processing library for Swift that converts raw HTML or XML strings and files into a structured document object model. It provides the core infrastructure to parse web content into a traversable tree, enabling programmatic access to page elements across iOS, macOS, and Linux. The library features a CSS selector engine for data extraction and a whitelist-based sanitization system to remove unsafe tags and attributes from user-submitted content. It optimizes repetitive document queries through memoized query caching. The project covers DOM manipulation for upd

    Swift
    View on GitHub↗5,135
  • jquery/sizzlejquery avatar

    jquery/sizzle

    6,296View on GitHub↗

    A sizzlin' hot selector engine.

    JavaScript
    View on GitHub↗6,296
  • cheeriojs/cheeriocheeriojs avatar

    cheeriojs/cheerio

    30,534View on GitHub↗

    Cheerio is an HTML and XML parsing library and server-side DOM implementation. It functions as a markup manipulation tool and CSS selector engine, allowing users to parse, query, and modify HTML or XML documents in non-browser environments. The project provides a DOM-like tree representation of markup strings, enabling programmatic addition, removal, and modification of elements and attributes. It features a prototype-based plugin system that allows the extension of core functionality by adding custom methods to the document prototype. The library covers a broad range of capabilities includi

    TypeScriptcheeriodomhacktoberfest
    View on GitHub↗30,534
  • Compare all 30 related projects→