---
title: Install `hq` by Tom Forbes (UNOFFICIAL) on Linux | Snap Store
description: Get the latest version of `hq` by Tom Forbes (UNOFFICIAL) for Linux -
  jq, but for HTML
url: https://snapcraft.io/orf-hq
---

# `hq` by Tom Forbes (UNOFFICIAL) (orf-hq)

[林博仁 Buo-ren Lin (brlin)](https://snapcraft.io/publisher/brlin "View all snaps from 林博仁 Buo-ren Lin (brlin)")

* [林博仁 Buo-ren Lin (brlin)](https://snapcraft.io/publisher/brlin "View all snaps from 林博仁 Buo-ren Lin (brlin)")

latest/stable 1.2.2

Install latest/stable of `hq` by Tom Forbes (UNOFFICIAL)

This channel hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

**Install using the command line**

```
sudo snap install orf-hq
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* orf-hq

---

### License

* unset

---

### Last updated

* 16 October 2024 - latest/stable
* 16 October 2024 - latest/edge

This snap hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/orf-hq#report-snap-modal)

---

* [Description](https://snapcraft.io/orf-hq#tab-description)
* [Security](https://snapcraft.io/orf-hq#tab-security)

#### 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": "..."
     }
   ]
 }
```

---

## 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](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/orf-hq/arch)

[### CentOS](https://snapcraft.io/install/orf-hq/centos)

[### Debian](https://snapcraft.io/install/orf-hq/debian)

[### elementary OS](https://snapcraft.io/install/orf-hq/elementary)

[### Fedora](https://snapcraft.io/install/orf-hq/fedora)

[### KDE Neon](https://snapcraft.io/install/orf-hq/kde-neon)

[### Kubuntu](https://snapcraft.io/install/orf-hq/kubuntu)

[### Manjaro](https://snapcraft.io/install/orf-hq/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/orf-hq/pop)

[### openSUSE](https://snapcraft.io/install/orf-hq/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/orf-hq/rhel)

[### Ubuntu](https://snapcraft.io/install/orf-hq/ubuntu)

[### Raspberry Pi](https://snapcraft.io/install/orf-hq/raspbian)
