AptLynx

Command-line tool

htmlq

brew/htmlq

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

Uses CSS selectors to extract bits content from HTML files

At a glance

Type
Command-line tool
Install on
Windows, macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

Windows

scoop install htmlq
cargo install htmlq

macOS

brew install htmlq
cargo install htmlq

Linux

brew install htmlq
cargo install htmlq

Return all elements of class `card`

cat path/to/file.html | htmlq '.card'

Get the text content of the first paragraph

cat path/to/file.html | htmlq -t 'p:first-of-type'

Find all the links in a page

cat path/to/file.html | htmlq -a href 'a'

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents