`hq` by Tom Forbes (UNOFFICIAL) (orf-hq)
Install latest/stable of `hq` by Tom Forbes (UNOFFICIAL)
Ubuntu 16.04 or later?
Make sure snap support is enabled in your Desktop store.
Details for `hq` by Tom Forbes (UNOFFICIAL)
Package name
- orf-hq
License
- unset
Last updated
- 16 October 2024 - latest/stable
- 16 October 2024 - latest/edge
Report a Snap Store violation
Report `hq` by Tom Forbes (UNOFFICIAL) for a Snap Store violation
Snap Store Violation Report submitted successfully
Thank you for your report. Information you provided will help us investigate further.
Error submitting report
There was an error while sending your report. Please try again later.
Share this snap
Generate an embeddable card to be shared on external websites.
jq, but for HTML
Snap-specific notes
This snap is NOT an official distribution of hq, please refer to the snap's own issue tracker for support: https://github.com/brlin-tw/orf-hq-snap/issues
You can run the following command to expose the native hq command
to your shell:
snap alias orf-hq.hq hq
Upstream project description
hq reads HTML and converts it into a JSON object based on a series
of CSS selectors. The selectors are expressed in a similar way to
JSON, but where the values are CSS selectors. For example:
{posts: .athing | [ {title: .titleline > a, url: .titleline > a | @(href)} ] }
This will select all .athing elements, and it will create an array
(| [{...}]) of objects for each element selected. Then for each
element it will select the text of the titleline > a element, and
the href attribute (| @(href)).
The end result is the following structure:
{
"posts": [
{
"title": "...",
"url": "..."
}
]
}
| Revision | Channel | Version | Build | Commit | Download SBOM |
|---|
The build and commit information is derived from build infrastructure records.
Install `hq` by Tom Forbes (UNOFFICIAL) on your Linux distribution
Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.