htmlq icon indicating copy to clipboard operation
htmlq copied to clipboard

Like jq, but for HTML.

Results 46 htmlq issues
Sort by recently updated
recently updated
newest added

I want an "either/or" match (ie; if both exists would return results, or one or the other) `htmlq 'link[type="application/rss+xml"]' --attribute href` and `htmlq 'link[type="application/atom+xml"]' --attribute href` something like: `htmlq '(link[type="application/rss+xml"]|link[type="application/atom+xml"]'...

Trying to get a list of [currently available Invidious instances](https://redirect.invidious.io), I started doing curl -s https://redirect.invidious.io | htmlq "noscript" which gave me a list of all the noscript elements on...

Somehow htmlq turns the element, or tag names into lowercase: ### Expected ```sh $ echo -e '\n True\n' | htmlq Need True ``` ### Actual ```sh $ echo -e '\n...

It would be nice to be able to collapse each match into a single line, for further filtering with tools like `grep`. For example, when matching table rows, each row...

Have you thought about adding JSON output? ``` -t, --text Output only the contents of text nodes inside selected elements -j, --json Output JSON representation of the selected elements ```...

Deb10 default setup, had to work around cargo segfaulting but even then I get this output from `cargo install htmlq` ``` CARGO_NET_GIT_FETCH_WITH_CLI=true cargo install htmlq Updating crates.io index Downloaded htmlq...

Hi I try to install using cargo on Debian 10.11 cargo install htmlq Updating crates.io index Naruszenie ochrony pamięci dmesg: [675470.217399] cargo[32433]: segfault at c800010009 ip 000055900cf03a54 sp 00007ffd83d21eb0 error...

Hello, I am learning rust and come by your repository. I saw there are missing itests for the command hence I wrote this contribution. I am happy to get any...

`curl --silent https://www.rust-lang.org/ | htmlq '#get-help.languages'` returns empty. Related to: https://github.com/mgdm/htmlq/issues/34

I can do the work of adding it in, if the maintainer likes it :).