返回顶部
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
安全检测
已通过
162
下载量
0
收藏
概述
安装方式
版本历史

web-search-local

# web-search-local Local web search skill without API Key, supports multi-engine auto-switching and built-in cache. ## Triggers Use this skill when the user requests: - "搜索/查一下/搜一下 + 关键词" (Search/Check/Look up + keywords) - "帮我找/帮我搜 + 信息" (Help me find/search + information) - Need to get real-time web information - "最近/最新 + 某话题" (Recent/Latest + topic) - "查资料/网上查" (Look up materials/Search online) ## Usage ### Basic Search ```bash python3 scripts/search.py -q "keywords" ``` ### Specify Engine ```bash python3 scripts/search.py -q "keywords" -e bing # Bing (default) python3 scripts/search.py -q "keywords" -e auto # Auto failover python3 scripts/search.py -q "keywords" -e webfetch # urllib fallback ``` ### Common Options ```bash python3 scripts/search.py -q "keywords" -l 5 # Limit result count python3 scripts/search.py -q "keywords" --fast # Fast mode, skip cookies python3 scripts/search.py -q "keywords" --no-cache # Skip cache python3 scripts/search.py -q "keywords" -f text # Text format output python3 scripts/search.py -q "keywords" -o file.json # Output to file python3 scripts/search.py -q "keywords" -v # Verbose logging ``` ## Engine Selection | Engine | Description | |--------|-------------| | `bing` | Default primary, supports RSS and HTML dual mode | | `auto` | Auto failover, Bing → Yandex → DDG → WebFetch | | `webfetch` | urllib standard library, no requests package needed | Default is `bing`, use `auto` on failure. ## Cache Mechanism - Location: `~/.cache/web-search-local/` - Expiration: 1 hour - Cache hit returns in sub-second ### Cache Management ```bash python3 scripts/search.py --cache-stats # View cache statistics python3 scripts/search.py --cache-clear # Clear cache ``` ## Output Format ### JSON (default) ```bash python3 scripts/search.py -q "keywords" -f json ``` ```json { "query": "search keywords", "engine": "bing", "count": 3, "results": [ {"title": "page title", "url": "https://...", "snippet": "summary description"} ], "elapsed_seconds": 0.58 } ``` ### Text ```bash python3 scripts/search.py -q "keywords" -f text ``` ``` Search: python programming Engine: bing Results: 2 ============================================================ 1. Python.org - Official Site https://python.org The official home of Python ``` ## Notes - Chinese search optimized for cn.bing.com - Each search has 2-5 second delay (anti-crawler policy) - No delay on cache hit - Does not support content requiring login ## Detailed Documentation - Detailed usage and examples: see [`references/search-usage.md`](references/search-usage.md) - Auto engine technical specifications: see [`references/search-auto-engine.md`](references/search-auto-engine.md)

标签

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

下载 Zip 包

⬇ 下载 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
返回顶部