hq
« Back to VersTracker
Description:
Jq, but for HTML
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: html cli query scraper jq
Install: brew install hq
About:
HtmlQuery (hq) is a command-line tool that applies jq-like JSON processing to HTML documents. It parses HTML into a structured format and allows users to query and extract data using CSS selectors or a functional syntax. This enables developers to scrape and manipulate web content directly from the terminal without needing complex scripts.
Key Features:
  • jq-like syntax for HTML
  • CSS selector support
  • Command-line interface
  • Structured data extraction
Use Cases:
  • Scraping data from HTML pages
  • Extracting specific elements from web content
  • Processing HTML in shell scripts
Alternatives:
  • pup – Similar CLI HTML parsing tool, but with a different query syntax
  • jq – Industry standard for JSON processing, does not natively support HTML
Version History
Detected Version Rev Change Commit
Sep 12, 2025 10:40am 0 VERSION_BUMP 41e2c6a4
Sep 12, 2024 11:16pm 0 VERSION_BUMP 8d96ac79