htmlq Command-Line HTML Content Extractor with CSS Selectors
htmlq is a command-line tool for extracting content from HTML using CSS selectors, functioning as the HTML equivalent of jq. Written in Rust, it lets you pipe HTML through CSS selectors to extract text, attributes, and structured content directly from the terminal.
What it does
htmlq Command-Line HTML Content Extractor with CSS Selectors
htmlq is a command-line tool for extracting content from HTML using CSS selectors, functioning as the HTML equivalent of jq. Written in Rust, it lets you pipe HTML through CSS selectors to extract text, attributes, and structured content directly from the terminal.
Prerequisites
Rust (cargo) or Homebrew
Installation
Use the upstream install or setup path that matches your environment:
- cargo install htmlq
- brew install htmlq
Requirements and caveats from upstream:
-
Remove a node before output
Basic usage or getting-started notes:
-
Cargo
-
sh
-
FreeBSD pkg
-
Source: https://github.com/mgdm/htmlq
-
Extracted from upstream docs: https://raw.githubusercontent.com/mgdm/htmlq/HEAD/README.md
Documentation
Source
Capabilities
Install
Quality
deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,056 chars)