返回顶部
g

ghostfetch幽灵抓取器

CLI web search and page fetcher for LLM agents. Search DuckDuckGo/Brave/Bing/Google, fetch pages as markdown, and extract links — single binary, no browser required.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
381
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

ghostfetch

Ghostfetch

面向AI代理的网页搜索与页面抓取工具。单一二进制文件,无需浏览器。采用类浏览器TLS指纹抓取页面,确保可靠访问。

用途:网络搜索、将页面内容转为Markdown格式、提取链接、从网络收集信息。

命令

搜索网络

bash
ghostfetch 你的搜索查询 # 使用DuckDuckGo搜索(默认)
ghostfetch 查询 -e brave # 使用Brave搜索
ghostfetch 查询 -e google # 使用Google搜索
ghostfetch 查询 -e bing # 使用Bing搜索
ghostfetch 查询 -n 5 # 限制为5条结果
ghostfetch 查询 --json # 输出含元数据的JSON格式

搜索引擎:duckduckgo(默认)、brave、bing、google

抓取页面

bash
ghostfetch fetch https://example.com # 抓取页面(原始HTML)
ghostfetch fetch https://example.com -m # 抓取为Markdown(阅读模式 — 推荐)
ghostfetch fetch https://example.com --markdown-full # 整页转为Markdown(不仅限于主要内容)
ghostfetch fetch https://example.com --json # 输出含正文、状态、标头、Cookie的JSON
ghostfetch fetch https://example.com --raw # 原始HTML,不处理
ghostfetch fetch url1 url2 url3 -p 3 # 并行抓取多个URL

读取页面内容时始终使用-m(Markdown模式)——它会提取主要内容并转换为干净的Markdown,相比原始HTML可节省令牌。

提取链接

bash
ghostfetch links https://example.com # 提取页面所有链接
ghostfetch links https://example.com -f github # 按正则表达式模式过滤链接
ghostfetch links https://example.com --json # JSON格式输出

标志参考

标志缩写默认值功能说明
--engine-educkduckgo使用的搜索引擎
--results
-n | 10 | 搜索结果数量 | | --markdown | -m | false | 转换为Markdown(阅读模式) | | --markdown-full | | false | 整页Markdown(不仅限于主要内容) | | --json | -j | false | 输出含元数据的JSON | | --raw | | false | 原始HTML输出 | | --max-parallel | -p | 5 | 最大并行抓取数 | | --filter | -f | | 按正则表达式过滤链接 | | --timeout | -t | 30s | 请求超时时间 | | --browser | -b | chrome | 浏览器指纹:chrome、firefox | | --no-cookies | | false | 禁用Cookie持久化 | | --follow | -L | true | 跟随重定向 | | --verbose | -v | false | 打印请求/响应详情 | | --captcha-service | | | 验证码服务:2captcha、anticaptcha | | --captcha-key | | | 验证码服务API密钥 |

决策指南

我想...使用此命令
搜索网络ghostfetch 查询
使用特定引擎搜索
ghostfetch 查询 -e brave | | 阅读网页 | ghostfetch fetch -m | | 同时阅读多个页面 | ghostfetch fetch url1 url2 url3 -m -p 3 | | 查找页面上的链接 | ghostfetch links | | 查找特定链接 | ghostfetch links -f 模式 | | 获取结构化数据 | ghostfetch fetch --json |

示例

研究主题

bash ghostfetch rust async runtime comparison 2026 -n 5 ghostfetch fetch https://tokio.rs -m

抓取结构化数据

bash ghostfetch fetch https://api.example.com/data --json

查找页面上所有GitHub链接

bash ghostfetch links https://awesome-list.com -f github.com

安装

ghostfetch二进制文件必须位于PATH环境变量中。从源码构建:

bash
git clone https://github.com/neothelobster/ghostfetch.git
cd ghostfetch
go build -o ghostfetch .
cp ghostfetch ~/.openclaw/workspace/tools/

或运行附带的setup.sh脚本,该脚本会克隆指定提交版本并进行验证。

需要Go 1.21+版本进行构建。无运行时依赖。

安全性

  • - 只读工具——输出仅发送至标准输出,无文件写入能力
  • 无自定义标头或POST请求体——不会向外部端点泄露机密信息
  • 除可选的Cookie存储(使用--no-cookies禁用)外,不存储任何数据
  • 所有网络请求直接从你的机器发出——无需代理或第三方服务
  • 安装脚本从GitHub克隆指定提交版本并进行验证
  • 源代码:https://github.com/neothelobster/ghostfetch

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ghostfetch-1776297596 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ghostfetch-1776297596 技能

通过命令行安装

skillhub install ghostfetch-1776297596

下载

⬇ 下载 ghostfetch v1.1.0(免费)

文件大小: 3.21 KB | 发布时间: 2026-4-16 17:50

v1.1.0 最新 2026-4-16 17:50
Security hardening: removed -o (file write), -H (custom headers), -X (HTTP method), -d (POST body), -c (cookie jar path) flags to prevent data exfiltration and file overwrite. Added captcha support. Pinned setup.sh to commit 6e6876a.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部