Latest / Developer tools

hq

github.com · Open source · Maintained

Command-line tool that queries HTML with jq-style syntax

Visit github.com ↗Share

Stars
672
Forks
9
Open issues
5
Last commit
Releases
4
Found
3 years ago

GitHub figures as of . They are context, not a ranking.

A command-line tool that works like jq but for HTML, so you can pick out parts of a page's markup with jq-style queries. The repository calls it jq for HTML, and the input gives no further detail.

Positioned as an alternative to jq.

Repository description on GitHub: “jq, but for HTML”

What it does

  • Queries HTML with jq-style syntax and outputs JSON
  • Special queries select text, attributes, parents and siblings
  • Uses CSS selectors to pick elements from a page

Good for

  • Extract post titles and links from an HTML page
  • Turn a web page's markup into JSON in a shell pipeline
  • Try the query syntax in a browser playground

Suits: Developers scraping structured data from HTML on the command line.

What you can try

Read the README on GitHub and install from source.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw hq on , when orf posted it to Show HN. The oldest published release on GitHub is v1.0.1, dated . Its first tagged release came 97 days after it was found. 4 releases have been published in total; the latest is html-query-extractor-v0.2.2 ().

Day-7 and day-30 updates

Day 7 no new release

  • No tagged release was published in the first 7 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 40 points, 1 comment. API record

Checked , later than day 7 because tracking began after.

Day 30 no new release

  • No tagged release was published in the first 30 days after it was found (GitHub release dates).
  • Show HN discussion at check time: 40 points, 1 comment. API record

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

  1. Repository created on GitHub: orf/hq
  2. Found: orf posted it to Show HN. Show HN
  3. Release v1.0.1
  4. Release html-query-v1.2.0
  5. Release html-query-v1.2.2
  6. Release html-query-extractor-v0.2.2
  7. Day-7 check recorded by Kip (details)
  8. Day-30 check recorded by Kip (details)

Quick answers

When was hq released?
Its first tagged release on GitHub is dated 10 Mar 2023. Kip found it on Show HN on 3 Dec 2022.
Is hq open source?
Its source is public on GitHub at orf/hq under the MIT licence.
What does hq run on?
Command line, Web.
Is hq free?
It is open source, so the code is free to read and run; check the licence for terms.
Is hq still maintained?
It had a commit or release in the last year, though not in the last 90 days, as of the latest check.

Provenance

SourceRecordLast checked
Show HNlisting
official API record
GitHub repositoryorf/hq
REST API record
GitHub Releasesrelease list
REST API record

Stable ID hn-33845887. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.