← 返回
未分类 Key

小宿智能搜索

Web search via 小宿智能搜索 V2 API (XiaoSu Smart Search). Use when internet search, web lookup, real-time information retrieval, news search, or fact-checking is n...
Web search via 小宿智能搜索 V2 API (XiaoSu Smart Search). Use when internet search, web lookup, real-time information retrieval, news search, or fact-checking is n...
dr-xiaoming
未分类 clawhub v1.0.2 1 版本 100000 Key: 需要
★ 0
Stars
📥 447
下载
💾 0
安装
1
版本
#latest

概述

小宿智能搜索 V2

Web search API for real-time internet information retrieval.

Setup (Required)

Set these environment variables before using this skill:

export XIAOSU_AK="<your-access-key>"
export XIAOSU_ENDPOINT="<your-endpoint-path>"

Get your credentials at: https://www.xiaosuai.com (小宿智能搜索)

You can add them to your shell profile (~/.bashrc / ~/.zshrc) or OpenClaw's .env file.

Quick Usage

Run the search script directly:

python3 ~/.openclaw/skills/xiaosu-search/scripts/xiaosu_search.py "<query>" \
  --ak $XIAOSU_AK --endpoint $XIAOSU_ENDPOINT [options]

Common Patterns

# Basic search
python3 scripts/xiaosu_search.py "宁德时代" --ak $AK --endpoint $EP

# Recent news (last 24h)
python3 scripts/xiaosu_search.py "CATL battery" --freshness Day --ak $AK --endpoint $EP

# With full content extraction (for deep reading)
python3 scripts/xiaosu_search.py "储能行业趋势" --content --content-type MARKDOWN --content-timeout 5 --ak $AK --endpoint $EP

# Smart snippets (relevant text fragments)
python3 scripts/xiaosu_search.py "固态电池进展" --main-text --ak $AK --endpoint $EP

# Site-specific search
python3 scripts/xiaosu_search.py "宁德时代" --sites finance.eastmoney.com --ak $AK --endpoint $EP

# Raw JSON output (for programmatic use)
python3 scripts/xiaosu_search.py "query" --json --ak $AK --endpoint $EP

# Pagination
python3 scripts/xiaosu_search.py "query" --count 20 --offset 20 --ak $AK --endpoint $EP

Script Options

FlagDescription
-------------------
--count NResults count: 10/20/30/40/50
--freshness XTime filter: Day, Week, Month
--offset NPagination offset
--contentEnable long-form content extraction
--content-type TTEXT (default), MARKDOWN, HTML
--content-timeout SContent read timeout (max 10s)
--main-textEnable smart snippet extraction
--sites HOSTRestrict to site
--block HOSTExclude site
--no-cacheDisable 10-min result cache
--jsonRaw JSON output

Direct API Usage (curl)

curl -s -G "https://searchapi.xiaosuai.com/search/$XIAOSU_ENDPOINT/smart" \
  --data-urlencode "q=<query>" \
  --data-urlencode "count=10" \
  -H "Authorization: Bearer $XIAOSU_AK"

Guidelines

  • For news monitoring: use --freshness Day + --count 20
  • For deep research: use --content --content-type MARKDOWN --content-timeout 5
  • For fact-checking: use --main-text for relevant fragments without full content overhead
  • Rate limit: 429 = QPS exceeded, back off and retry
  • Results have a score field (0-1) indicating relevance; prioritize high-score results
  • API reference details: see references/api-docs.md

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-31 03:53 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Cognitive OS

dr-xiaoming
{ "answer": "认知操作系统——一种统一思维框架,确保战略意图对齐、深度多维推理及结构化信息收集。" }
★ 0 📥 641

ADB Android Control

dr-xiaoming
通过ADB(Android调试桥)在Mac上远程控制Android设备,支持点击、滑动、输入文字、截图、录屏等操作。
★ 0 📥 853

OpenClaw Doctor (macOS)

dr-xiaoming
macOS网关7x24小时守护进程,具备四层健康检查与自动修复功能。监控项包括:L1进程存活、L2 HTTP端口、L3 WebSocket通信(含1006检测)...
★ 0 📥 576