test-search

Search the web using iFlytek ONE SEARCH API (万搜/聚合搜索). Returns titles, summaries, URLs, and full text from web pages. Good for Chinese-language web search.22222

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "test-search" with this command: npx skills add kokkmiao/test-search

test-search

Search the web using iFlytek ONE SEARCH API (万搜/聚合搜索). Returns titles, summaries, URLs, and full text content from web pages.

When to Use

  • User asks to search the Chinese web or needs Chinese-language search results
  • Need an alternative to Brave Search (especially for Chinese content)
  • User explicitly requests iFlytek / 讯飞 / 万搜 search

Prerequisites

  • Python 3 (standard library only, no pip install needed)
  • Environment variable: XFYUN_API_PASSWORD — API password from 讯飞控制台

Usage

The script is at scripts/search.py relative to this skill directory.

Basic Search

python3 scripts/search.py "搜索关键词"

Options

FlagDescription
--limit NMax results, 1–20 (default 10)
--no-rerankDisable result reranking
--no-fulltextDisable full text retrieval
--rawOutput raw JSON instead of formatted text

Examples

# Simple search
python3 scripts/search.py "美国现任总统是谁"

# Limit to 5 results
python3 scripts/search.py "Python asyncio 教程" --limit 5

# Raw JSON output for programmatic use
python3 scripts/search.py "量子计算最新进展" --raw

# Minimal mode — no rerank, no full text
python3 scripts/search.py "天气预报" --no-rerank --no-fulltext

Output Format (default)

Query: 美国现任总统是谁

## 1. Page Title
URL: https://example.com/page
Summary: Brief description of the page content

## 2. Another Result
URL: https://example.com/other
Summary: Another brief description

Output Format (--raw)

Returns the full API JSON response including data.search_results.documents[].content (full page text).

API Details

  • Endpoint: POST https://search-api-open.cn-huabei-1.xf-yun.com/v2/search
  • Auth: Authorization: Bearer <XFYUN_API_PASSWORD>
  • Rate limits: Per-app daily and per-second limits apply (see error codes below)

Error Codes

CodeMeaning
0Success
11200Authorization error or quota exceeded
11201Daily rate limit exceeded
11202Per-second rate limit exceeded
11203Concurrent connection limit exceeded
21001Missing parameters
21009Unauthorized appId

Tips

  • Use complete questions (e.g. "美国现任总统是谁?") rather than keywords for better time-sensitive results
  • Query length should be ≤512 characters

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Writing Triadic

Self-evolving 3-role writing framework: Creator mines intent via progressive Q&A, Executor produces 2 distinct drafts, Reader scores with weighted 6-D review...

Registry SourceRecently Updated
General

古言 - 中文极简压缩 + 身份模式

古言模式 - 极简中文压缩技能。绑定龙虾4号身份,默认古言输出。覆盖:语言压缩 + 角色身份 + 自动触发 + 多智能体调度 + 技术沟通桥接 + 记忆编写。

Registry SourceRecently Updated
General

Pencil Eraser Dust Tray Tag

Create a printable tray tag that gives pencil users a visible place, sweep cue, cleanup mark, and reset routine for eraser dust on desks.

Registry SourceRecently Updated
General

Drawer Stopper Felt Strip Tag

Design printable mini tags sized for felt-strip packs and drawer labels, creating visible soft-stop reminders and quiet-zone labels.

Registry SourceRecently Updated