返回顶部
w

web-search-local本地网页搜索

Local web search without API Key. Supports Bing, DuckDuckGo, Yandex multi-engine search with built-in cache and automatic failover. Use when users need to search for network information, find materials, or query real-time information.

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

web-search-local

web-search-local

无需API密钥的本地网页搜索技能,支持多引擎自动切换和内置缓存。

触发条件

当用户提出以下请求时使用此技能:

  • - 搜索/查一下/搜一下 + 关键词
  • 帮我找/帮我搜 + 信息
  • 需要获取实时网络信息
  • 最近/最新 + 某话题
  • 查资料/网上查

使用方法

基础搜索

bash
python3 scripts/search.py -q 关键词

指定引擎

bash
python3 scripts/search.py -q 关键词 -e bing # Bing(默认)
python3 scripts/search.py -q 关键词 -e auto # 自动故障转移
python3 scripts/search.py -q 关键词 -e webfetch # urllib回退

常用选项

bash
python3 scripts/search.py -q 关键词 -l 5 # 限制结果数量
python3 scripts/search.py -q 关键词 --fast # 快速模式,跳过cookies
python3 scripts/search.py -q 关键词 --no-cache # 跳过缓存
python3 scripts/search.py -q 关键词 -f text # 文本格式输出
python3 scripts/search.py -q 关键词 -o file.json # 输出到文件
python3 scripts/search.py -q 关键词 -v # 详细日志

引擎选择

引擎描述
bing默认主引擎,支持RSS和HTML双模式
auto
自动故障转移,Bing → Yandex → DDG → WebFetch | | webfetch | urllib标准库,无需requests包 |

默认为bing,失败时使用auto。

缓存机制

  • - 位置:~/.cache/web-search-local/
  • 过期时间:1小时
  • 缓存命中可在亚秒内返回

缓存管理

bash
python3 scripts/search.py --cache-stats # 查看缓存统计
python3 scripts/search.py --cache-clear # 清除缓存

输出格式

JSON(默认)

bash
python3 scripts/search.py -q 关键词 -f json

json
{
query: 搜索关键词,
engine: bing,
count: 3,
results: [
{title: 页面标题, url: https://..., snippet: 摘要描述}
],
elapsed_seconds: 0.58
}

文本

bash
python3 scripts/search.py -q 关键词 -f text

搜索:Python编程
引擎:bing
结果:2
============================================================

  1. 1. Python.org - 官方网站
https://python.org Python官方主页

注意事项

  • - 中文搜索针对cn.bing.com优化
  • 每次搜索有2-5秒延迟(反爬虫策略)
  • 缓存命中时无延迟
  • 不支持需要登录的内容

详细文档

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 web-search-local-1776128342 技能

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

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

通过命令行安装

skillhub install web-search-local-1776128342

下载

⬇ 下载 web-search-local v0.1.1(免费)

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

v0.1.1 最新 2026-4-17 16:32
- Added sample documentation files: README.md, docs/engine-expansion.md.
- Introduced main search script: scripts/search.py.
- No changes to core functionality; new files provide additional documentation and usage guidance.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部