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.

agentskillexchange Updated 28 repo stars

File contents

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:

Documentation

Source

agentskillexchange/skills/tree/main/skills/htmlq-command-line-html-content-extractor-css-selectors commit dd567bbdd1

Frequently asked questions

npx skillmds@latest add agentskillexchange/htmlq-command-line-html-content-extractor-with-css-selectors