Automic VaultAutomic Vault

brew

使用 Homebrew 安装 hq

查看 hq 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install hq

local Homebrew formula metadata

概览

软件包摘要

Jq, but for HTML

历史

项目历史与用法

hq is a Rust command-line tool for extracting structured JSON from HTML with CSS selectors. Its README summarizes the idea as `jq, but for HTML`.

项目历史

The project lives in the `orf/html-query` repository as a small Rust workspace with crates for the CLI, AST, extractor, and web UI. The README documents a selector syntax that looks JSON-shaped but uses CSS selectors as values, then emits JSON output.

采用历史

hq is packaged through Homebrew and published on crates.io as `html-query`. The crates.io metadata records the crate creation in December 2022 and points back to the upstream repository lineage, while the README documents installation through either `brew install hq` or `cargo install html-query`.

使用方式

Users pass hq a query such as `{posts: .athing | [{title: .titleline > a}]}` to select HTML elements and shape the result as JSON. The documented syntax includes text extraction, attribute extraction, parent selection, sibling selection, and nested arrays or objects.

The common use case is quick shell scraping: fetch or pipe HTML, select useful pieces with CSS selectors, and hand the resulting JSON to other command-line tools.

为什么软件包爱好者会关心

hq is interesting because it imports the jq mental model into HTML scraping without trying to become a full crawler or browser automation framework. For package nerds, it belongs to the small-tool lineage where each file format gets a composable query command.

It also shows a familiar Rust CLI distribution pattern: a crates.io package for Cargo users, a GitHub repository with a web demo, and a Homebrew formula for users who want a binary package.

时间线

  • 2022: crates.io records the `html-query` crate creation.
  • 2023: crates.io records version 1.2.2 of `html-query`.
  • 1.2.2: Homebrew packages hq from the upstream `html-query-v1.2.2` GitHub archive.

Related projects

  • jq is the direct conceptual comparison used in the hq README.
  • CSS selector engines and Rust HTML parsing crates provide the underlying interaction model.
  • htmlq is a related but separate CLI in the broader `jq for HTML` family.

安全态势

尚未找到受保护工具覆盖

没有找到 hq 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 10 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
hqcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.2.2
管理器更新时间2026-06-15
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/orf/html-query

安装元数据

软件包元数据

软件包键brew:hq
版本1.2.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/hq
主页https://orf.github.io/html-query/
仓库https://github.com/orf/html-query
上游文档https://github.com/orf/html-query#readme
许可证MIT
源码归档https://github.com/orf/html-query/archive/refs/tags/html-query-v1.2.2.tar.gz
最后更新2026-06-15T10:20:18-04:00
Pulseupdated
构建依赖rust
Bottle可用 (于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehq
Version Scheme0
Revision0
Conflicts With
  • proxygen
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

Combined YAML source

View the package source record on GitHub.

combined/hq.yml

使用的来源

  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment