Htmlq

From wikinotes
Revision as of 18:04, 4 February 2023 by Will (talk | contribs) (Created page with "htmlq is similar to jq, it allows you to use CSS selectors to extract info from HTML in shellscripts. = Documentation = <blockquote> {| class="wikitable" |- | github || https://github.com/mgdm/htmlq |- |} </blockquote><!-- Documentation --> = Install = <blockquote> <syntaxhighlight lang="bash"> pacman -S htmlq # Arch pkg install htmlq # FreeBSD </syntaxhighlight> </blockquote><!-- Install --> = Usage = <blockquote> <syntaxhighlight lang="bash"> cat foo.html |...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

htmlq is similar to jq, it allows you to use CSS selectors to extract info from HTML in shellscripts.

Documentation

github https://github.com/mgdm/htmlq

Install

pacman -S htmlq    # Arch
pkg install htmlq  # FreeBSD

Usage

cat foo.html | htmlq '#some-element-id'  # extract by css