htmlq

Extract content from HTML with CSS selectors.

Pipe an HTML document into htmlq and use a CSS selector to pick out matching elements. This Rust command-line tool can return the markup, just the text, or an attribute such as a link destination.