Skip to content
Search

Htmlq

lastmod 2021-09-09created 2021-09-091 edits

Like jq, but for HTML.

Features

  • CLI tool that extracts content from HTML files using CSS selectors
  • Open source, written in Rust

Examples

curl URL | htmlq '#get-help'
Find by ID
htmlq --attribute href a
Extract all links
htmlq --text .main
Extract text

See also

Favorite site

author Zer0 sitemap