微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🔎

多引擎精细化搜索增强工具

web-search-pro · vv1.0.0
效率 安全 A 级 作者 Unknown 公开目录收录
1.8k 下载 461 安装 6.9k 收藏 23.1k 浏览

简介

集成四大顶级搜索 API,提供域名过滤、深度搜索与内容提取能力,为 AI Agent 打造精准高效的网络信息检索增强方案。

原始描述

Multi-engine web search with full parameter control. Supports Tavily, Exa, Serper, and SerpAPI with domain filtering, date ranges, deep search, news mode, and content extraction. Auto-selects the best engine based on query type and available API keys. 多引擎精细化搜索:支持域名过滤、日期范围、深度搜索、新闻模式、内容提取。 根据查询类型和可用 API Key 自动选择最优引擎。

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/web-search-pro/
其它 Agent解压到它自己的 skills 目录,目录名用 web-search-pro

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

中文使用说明 来自收录源

核心用法

Web Search Pro 是一款面向 AI Agent 的多引擎精细化搜索工具,作为 OpenClaw 内置搜索的增强补充。用户配置一个或多个 API Key 后,工具会自动根据查询类型选择最优引擎:默认优先 Tavily(AI 优化、质量最佳),深度搜索同样优先 Tavily/Exa,新闻搜索则优先 Serper(Google News 覆盖广)。

支持丰富的搜索参数控制:

  • 域名过滤:--include-domains/--exclude-domains 限定或排除特定站点
  • 时间范围:绝对日期(--from/--to)或相对范围(--time-range day/week/month/year)
  • 模式切换:--deep 深度搜索、--news 新闻模式、--search-engine baidu 指定搜索引擎
  • 内容提取:从 URL 提取可读内容(Tavily Extract / Exa livecrawl)

显著优点

  1. 引擎智能调度:4 大引擎(Tavily/Exa/Serper/SerpAPI)自动择优,兼顾答案质量、新闻时效、中文支持等多维度需求
  2. 参数控制全面:相比内置搜索,新增域名白名单/黑名单、深度搜索、新闻时效限定等高级功能
  3. 输出格式友好:默认 Markdown 便于 AI 消费,--json 支持程序化调用
  4. 零依赖轻量:纯 Node.js 原生实现,无第三方依赖包,部署简单

潜在缺点与局限性

  • API 成本:深度搜索消耗更多配额(Tavily 2x),多引擎配置需分别管理额度
  • 中文场景弱:除 SerpAPI 可调用 Baidu 外,主流引擎对中文内容覆盖有限
  • 隐私透明度高:搜索查询必发送至第三方 API,敏感内容无法本地处理
  • 输入验证待加强:日期格式、域名格式等缺乏严格校验,无效输入可能导致 API 请求失败

适合人群

  • 需要超越基础搜索的 AI Agent 开发者
  • 对特定站点检索(如仅搜索 GitHub、Stack Overflow)有强需求的场景
  • 需要新闻时效过滤(最近 N 天)的研究分析任务
  • 愿意配置 API Key 换取更高质量搜索结果的进阶用户

常规风险

  • 数据外泄风险:所有搜索查询发送至第三方,需接受 Tavily/Exa/Serper/SerpAPI 隐私条款
  • 配额管理:免费额度有限(Tavily 1000/月、Serper 100/月),高频使用需预算规划
  • 来源可信度 T3:个人开发者维护,建议 fork 后自行审查用于生产环境

技能正文


name: web-search-pro description: | Multi-engine web search with full parameter control. Supports Tavily, Exa, Serper, and SerpAPI with domain filtering, date ranges, deep search, news mode, and content extraction. Auto-selects the best engine based on query type and available API keys. 多引擎精细化搜索:支持域名过滤、日期范围、深度搜索、新闻模式、内容提取。 根据查询类型和可用 API Key 自动选择最优引擎。 homepage: https://github.com/Zjianru/web-search-pro metadata: {"clawdbot":{"emoji":"🔎","requires":{"bins":["node"],"env_any":["TAVILY_API_KEY","EXA_API_KEY","SERPER_API_KEY","SERPAPI_API_KEY"]}}}

Web Search Pro

Multi-engine web search with full parameter control for AI agents. A precision supplement to OpenClaw's built-in web_search (Brave/Perplexity), providing domain filtering, deep search, news mode, date ranges, and content extraction that the built-in search does not support.

多引擎精细化网络搜索,为 AI Agent 设计。 作为 OpenClaw 内置 web_search(Brave/Perplexity)的精细化补充,提供域名过滤、 深度搜索、新闻模式、日期范围、内容提取等内置搜索不支持的能力。 配置一个或多个 API Key,自动选择最优引擎。

Engines / 引擎

Engine Strengths Free Tier API Key Env
Tavily AI-optimized, best answer quality, full filters, extract 1000/month TAVILY_API_KEY
Exa Semantic/neural search, deep research $10 credit EXA_API_KEY
Serper Real Google SERP, best news coverage 100/month SERPER_API_KEY
SerpAPI Multi-engine (Google/Bing/Baidu/Yandex/DuckDuckGo) 250/month SERPAPI_API_KEY

Auto-Select Priority / 自动选择优先级

When --engine is not specified, the skill picks the best available engine:

Query Type Priority Reason
Default Tavily > Exa > Serper > SerpAPI Tavily has best AI answer + full filters
--deep Tavily > Exa Both have dedicated deep search modes
--news Serper > Tavily Google News has widest coverage
--include-domains Tavily > Exa > Serper > SerpAPI Tavily/Exa have native domain filters
--search-engine baidu SerpAPI Only SerpAPI supports Baidu/Yandex
Chinese queries SerpAPI (Baidu) > Serper Baidu has better Chinese results

Search / 搜索

# Basic search (auto-select engine)
node {baseDir}/scripts/search.mjs "query"

# Force specific engine
node {baseDir}/scripts/search.mjs "query" --engine tavily

# Domain filtering (only search specific sites)
node {baseDir}/scripts/search.mjs "query" --include-domains "github.com,stackoverflow.com"

# Exclude domains
node {baseDir}/scripts/search.mjs "query" --exclude-domains "pinterest.com,quora.com"

# Date range (absolute)
node {baseDir}/scripts/search.mjs "query" --from 2026-01-01 --to 2026-02-09

# Time range (relative)
node {baseDir}/scripts/search.mjs "query" --time-range week

# Deep/advanced search
node {baseDir}/scripts/search.mjs "query" --deep

# News search
node {baseDir}/scripts/search.mjs "query" --news --days 7

# Multi-engine: Baidu search
node {baseDir}/scripts/search.mjs "query" --engine serpapi --search-engine baidu

# More results
node {baseDir}/scripts/search.mjs "query" -n 10

# JSON output (for programmatic use)
node {baseDir}/scripts/search.mjs "query" --json

Extract / 内容提取

Extract readable content from URLs (Tavily Extract or Exa livecrawl):

node {baseDir}/scripts/extract.mjs "https://example.com/article"
node {baseDir}/scripts/extract.mjs "url1" "url2" "url3"
node {baseDir}/scripts/extract.mjs "url" --engine exa
node {baseDir}/scripts/extract.mjs "url" --json

All Options / 全部参数

Option Description Engines
--engine <name> Force engine: tavily|exa|serper|serpapi all
-n <count> Number of results (default: 5) all
--deep Deep/advanced search mode tavily, exa
--news News search mode tavily, serper, serpapi
--days <n> Limit news to last N days tavily
--include-domains <d,...> Only search these domains all (native: tavily, exa)
--exclude-domains <d,...> Exclude these domains all (native: tavily, exa)
--time-range <range> day|week|month|year all
--from <YYYY-MM-DD> Results after this date all
--to <YYYY-MM-DD> Results before this date all
--search-engine <name> SerpAPI sub-engine: google|bing|baidu|yandex|duckduckgo serpapi
--country <code> Country code (us, cn, de...) serper, serpapi
--lang <code> Language code (en, zh, de...) serper, serpapi
--json Raw JSON output all

Setup / 配置

Add API keys to your environment (e.g., ~/.openclaw/.env):

# Configure at least one (recommended: Tavily)
TAVILY_API_KEY=tvly-xxxxx        # https://tavily.com (1000 free/month)
EXA_API_KEY=exa-xxxxx            # https://exa.ai ($10 free credit)
SERPER_API_KEY=xxxxx             # https://serper.dev (100 free/month)
SERPAPI_API_KEY=xxxxx            # https://serpapi.com (250 free/month)

Notes / 说明

  • At least one API key must be configured
  • Domain filtering via --include-domains/--exclude-domains works natively on Tavily and Exa; on Serper/SerpAPI it's implemented via site: query operators
  • --deep mode uses more API credits (Tavily: 2x, Exa: varies)
  • Extract only works with Tavily and Exa
  • All output is Markdown-formatted for AI agent consumption; use --json for programmatic access

正文来自原始仓库, 版权归作者所有,许可:MIT。 权利人认为有不妥,可申请下架。

原始仓库

作者的项目地址:https://github.com/zjianru/web-search-pro

标签

apicontent-mediaproductivityautomationdata-analytics

同类 Skill