# ericchiang/pup

Parsing HTML at the command line

Repository: https://github.com/ericchiang/pup
Canonical: https://ross.abutalabs.com/products/pup
Language: HTML
License: MIT
License Family: permissive
Last push: 2024-05-02T13:43:38+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4385, "days_push": 853, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8435, forks 262 (observed 2026-08-28T04:10:21.199909+00:00)

## What it is
pup is a command line tool for parsing and filtering HTML using CSS selectors, inspired by jq. It reads HTML from stdin, applies selector-based filters and display functions, and prints results to stdout.

## Use cases
- extract links from an html page from the terminal
- parse html with css selectors in a shell pipeline
- pretty-print and indent messy html
- scrape titles and attributes from web pages in bash
- filter html elements by tag, id, or attribute on the command line

## When to choose
- you need jq-like html filtering in shell scripts or one-liners
- you want a fast, dependency-free terminal tool for exploring html
- you're already comfortable with css selectors

## When to avoid
- you need full browser rendering or javascript execution
- you need a scraping framework with scheduling, retries, or proxies
- you want a programmatic html parsing library rather than a cli

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: parser, web-scraping, cli, developer-tools
- domain: developer-tools, web-development, crawlers
- platform: cli, windows, cross-platform
- tags: html-parsing, css-selectors, jq-inspired, stdin-stdout, terminal, command-line, macos, linux

## Member repositories
- ericchiang/pup (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:21.199909+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:27:15.018510+00:00, confidence not recorded.
  - readme: https://github.com/ericchiang/pup (fetched 2026-08-28T04:10:21.199909+00:00, sha 51f71c12a7b7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
