macOS
brew install htmlqlocal Homebrew formula metadata
sudo port install htmlqMacPorts ports tree · www/htmlq/Portfile · 来源: api.github.com
安装
brew install htmlqlocal Homebrew formula metadata
sudo port install htmlqMacPorts ports tree · www/htmlq/Portfile · 来源: api.github.com
sudo apk add htmlqAlpine Linux edge package indexes · htmlq · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#htmlqnixpkgs package indexes · pkgs/by-name/ht/htmlq/package.nix · 来源: api.github.com
sudo pacman -S htmlqArch Linux sync databases · htmlq · 来源: geo.mirror.pkgbuild.com
scoop install main/htmlqScoop official bucket manifest trees · bucket/htmlq.json · 来源: api.github.com
概览
Uses CSS selectors to extract bits content from HTML files
历史
htmlq is a Rust command-line tool that applies CSS selectors to HTML input, deliberately positioning itself as 'like jq, but for HTML.' Its package-manager appeal is direct: it gives shell users a compact selector-based extractor for scraping, inspection, and pipeline work.
The upstream README describes htmlq as a tool that extracts pieces of HTML files with CSS selectors. Michael Maclean's project post says it grew out of web-scraping work where Python and BeautifulSoup were workable but slow to start repeatedly inside shell-oriented loops.
The public release stream is small and concentrated: tags show v0.2.0 and v0.3.0 in September 2021 and v0.4.0 in January 2022. That pattern matches a focused utility whose interface stabilized around selector extraction, text output, attribute extraction, and shell installation paths.
The README lists Cargo, FreeBSD pkg, Homebrew, and Scoop installation paths, while the input package facts also record Alpine, MacPorts, Nix, Arch, and Scoop packaging. That spread is notable for a small Rust CLI because it shows adoption by users who want jq-like HTML querying without writing per-task scripts.
htmlq is used in pipelines that fetch or read HTML and then select elements with CSS selectors. It is adjacent to `jq` workflows, but chooses web-native selectors instead of JSON paths, making it useful for one-off scraping, documentation checks, and command-line extraction from generated HTML.
For package nerds, htmlq is a neat example of the Rust single-binary CLI wave: a narrowly scoped tool, easy to install through Cargo or OS package managers, with a name and interface that map an existing Unix mental model from JSON to HTML.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
htmlq | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:htmlq |
|---|---|
| 版本 | 0.4.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/htmlq |
| 主页 | https://github.com/mgdm/htmlq |
| 仓库 | https://github.com/mgdm/htmlq |
| 上游文档 | https://github.com/mgdm/htmlq |
| 许可证 | MIT |
| 源码归档 | https://github.com/mgdm/htmlq/archive/refs/tags/v0.4.0.tar.gz |
| 构建依赖 | rust |
| Bottle | 可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | htmlq |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
htmlq
nix profile install nixpkgs#htmlqhtmlq 0.4.0-r1
Like jq, but for HTML
sudo apk add htmlqhtmlq 0.4.0-3
Like jq, but for HTML
sudo pacman -S htmlqhtmlq
sudo port install htmlqmain/htmlq
scoop install main/htmlq来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.