Hi ports@, htmlq is a like `jq' tool, but for HTML. Uses CSS selectors to extract bits of content from HTML files.
Github: https://github.com/mgdm/htmlq I'm make a port, and test on AMD64 7.3, works fine for me: $ uname -a OpenBSD openbsd 7.3 GENERIC.MP#1125 amd6 $ curl --silent www.openbsd.org | htmlq title <title>OpenBSD</title> $ curl --silent www.openbsd.org | htmlq --text title OpenBSD $ curl --silent 'https://www.openbsd.org/faq/faq4.html#Download' | htmlq --attribute href a | grep '\.iso' https://cdn.openbsd.org/pub/OpenBSD/7.3/alpha/install73.iso ... Known issues at compile time, cargo will generate a warning when it is compiled: > warning: the following packages contain code that will be rejected by a future version of Rust: html5ever v0.25.1 This warn is about trailing semicolons when using Rust macros (https://github.com/rust-lang/rust/issues/79813) and can be ignored for now. OK to import? Thank you.
<<attachment: htmlq.zip>>