返回顶部
w

web-search-hub网络搜索中心

Use this skill when users need to search the web for information, news, images, or videos. Triggers include: requests to \"search for\", \"find information about\", \"look up\", \"what's the latest on\", or any request requiring current web content. Also use for research tasks, fact-checking, finding visual resources, or gathering recent news. Requires OpenClawCLI installation from clawhub.ai. Do NOT use when Claude's built-in web_search tool is more appropriate for simple queries.

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

web-search-hub

Web Search Hub

使用DuckDuckGo的API搜索网络。支持网页、新闻文章、图片和视频,并提供可自定义的筛选和输出格式。

⚠️ 前提条件: 安装 OpenClawCLI(Windows、MacOS)并运行 pip install duckduckgo-search

安装最佳实践:

  • - 如果遇到权限错误,请使用虚拟环境而非系统级安装
  • 对于虚拟环境:python -m venv venv && source venv/bin/activate && pip install duckduckgo-search
  • 切勿使用 --break-system-packages,因为它可能损坏系统的Python安装



快速参考


任务命令
基本网页搜索python scripts/search.py 查询词
近期新闻
python scripts/search.py 主题 --type news --time-range w |
| 查找图片 | python scripts/search.py 主题 --type images |
| 查找视频 | python scripts/search.py 教程 --type videos |
| 保存结果 | python scripts/search.py 查询词 --output file.txt |
| JSON输出 | python scripts/search.py 查询词 --format json |


核心搜索类型

网页搜索(默认)

返回包含标题、URL和描述的网页。

bash
python scripts/search.py 量子计算
python scripts/search.py python asyncio 教程 --max-results 20

新闻搜索

返回包含来源、日期和摘要的文章。

bash
python scripts/search.py 气候峰会 --type news
python scripts/search.py AI 监管 --type news --time-range d

图片搜索

返回包含URL、缩略图、尺寸和来源的图片。

bash
python scripts/search.py 山间日落 --type images
python scripts/search.py 抽象艺术 --type images --image-color Blue

视频搜索

返回包含标题、发布者、时长、日期和URL的视频。

bash
python scripts/search.py 烹饪教程 --type videos
python scripts/search.py 纪录片 --type videos --video-duration long



基本选项

结果数量

bash --max-results N # 默认:10,范围:1-无限制

示例:
bash
python scripts/search.py 机器学习 --max-results 5 # 快速概览
python scripts/search.py 研究主题 --max-results 30 # 全面搜索

时间筛选

bash --time-range

d = 过去一天

w = 过去一周

m = 过去一个月

y = 过去一年

示例:
bash
python scripts/search.py 科技新闻 --time-range d # 今日新闻
python scripts/search.py 研究论文 --time-range y # 近期出版物

地区选择

bash --region <代码> # 默认:wt-wt(全球)

常用代码: us-en、uk-en、ca-en、au-en、de-de、fr-fr

示例:
bash
python scripts/search.py 本地活动 --region us-en --type news

安全搜索

bash --safe-search # 默认:moderate

示例:
bash
python scripts/search.py 医疗信息 --safe-search on



输出格式

文本(默认)

清晰、编号的结果,包含URL和描述。

bash
python scripts/search.py 主题

输出:

  1. 1. 页面标题
URL: https://example.com 描述文本...
  1. 2. 下一个结果
URL: https://example.com/page 描述文本...

Markdown

使用标题、粗体和链接进行格式化。

bash
python scripts/search.py 主题 --format markdown

输出:
markdown

1. 页面标题

URL: https://example.com

描述文本...

JSON

用于程序化处理的结构化数据。

bash
python scripts/search.py 主题 --format json

输出:
json
[
{
title: 页面标题,
href: https://example.com,
body: 描述文本...
}
]

保存到文件

bash --output <文件路径>

示例:
bash
python scripts/search.py AI 趋势 --output results.txt
python scripts/search.py 新闻 --type news --format markdown --output news.md
python scripts/search.py 数据 --format json --output data.json



图片搜索筛选

尺寸

bash --image-size

示例:
bash
python scripts/search.py 风景 --type images --image-size Large

颜色

bash --image-color <颜色|Monochrome|Red|Orange|Yellow|Green|Blue|Purple|Pink|Brown|Black|Gray|Teal|White>

示例:
bash
python scripts/search.py 抽象艺术 --type images --image-color Blue

类型

bash --image-type

示例:
bash
python scripts/search.py 图标 --type images --image-type transparent

布局

bash --image-layout

示例:
bash
python scripts/search.py 壁纸 --type images --image-layout Wide



视频搜索筛选

时长

bash --video-duration

示例:
bash
python scripts/search.py 食谱 --type videos --video-duration short

分辨率

bash --video-resolution

示例:
bash
python scripts/search.py 教程 --type videos --video-resolution high



常见工作流程

研究一个主题

跨多种搜索类型收集全面信息:

bash

网页概览


python scripts/search.py 机器学习 --max-results 15 --output ml_web.txt

近期新闻

python scripts/search.py 机器学习 --type news --time-range m --output ml_news.txt

教程视频

python scripts/search.py 机器学习教程 --type videos --output ml_videos.txt

视觉示例

python scripts/search.py 机器学习图表 --type images --max-results 20 --output ml_images.txt

跟踪时事

监控特定主题的突发新闻:

bash
python scripts/search.py 选举结果 --type news --time-range d --format markdown --output daily_news.md

查找视觉资源

搜索具有特定要求的图片:

bash
python scripts/search.py 数据可视化 --type images --image-type photo --image-size Large --max-results 30 --output viz_images.txt

事实核查

使用近期来源验证声明:

bash
python scripts/search.py 待验证声明 --time-range w --max-results 20 --output verification.txt

市场研究

收集商业情报:

bash
python scripts/search.py 电动汽车市场 2025 --max-results 25 --output market_overview.txt
python scripts/search.py EV 行业 --type news --time-range m --output market_news.txt

学术研究

查找学术资源:

bash
python scripts/search.py 量子纠缠 --time-range y --max-results 30 --format markdown --output research.md



实施指南

当用户请求网页搜索时,请遵循以下方法:

1. 识别意图

  • - 什么内容类型?(网页、新闻、图片、视频)
  • 多近期?(使用 --time-range 获取当前信息)
  • 需要多少结果?(调整 --max-results)
  • 是否有特殊筛选条件?(尺寸、颜色、时长等)

2. 配置搜索

bash python scripts/search.py 查询词 \ --type \ --max-results \ --time-range \ [附加筛选条件]

3. 选择格式

  • - 文本: 快速阅读,即时查看
  • Markdown: 文档,格式化报告
  • JSON: 进一步处理,自动化

4. 执行和处理

bash

运行搜索

python scripts/search.py 查询词 [选项] --output results.txt

如果需要,读取结果

cat results.txt

提取URL或组合多个搜索


最佳实践

搜索策略

  1. 1. 从具体开始 - 使用清晰、有针对性的查询
  2. 使用时间筛选 - 对当前

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 web-search-hub-1776340591 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 web-search-hub-1776340591 技能

通过命令行安装

skillhub install web-search-hub-1776340591

下载

⬇ 下载 web-search-hub v0.1.3(免费)

文件大小: 8.55 KB | 发布时间: 2026-4-17 13:47

v0.1.3 最新 2026-4-17 13:47
- Updated installation instructions: removed advice to use `--break-system-packages` and added guidance on using virtual environments for safer dependency management.
- Added detailed best practices for installing dependencies without risking damage to the system Python.
- No changes to core search functionality or usage.

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

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

p2p_official_large
返回顶部