通过 iFlytek ONE SEARCH API(万搜/聚合搜索)搜索网页,返回标题、摘要、URL 和全文,适用于中文网络搜索。
Search the web using iFlytek ONE SEARCH API (万搜/聚合搜索). Returns titles, summaries, URLs, and full text content from web pages.
XFYUN_API_PASSWORD — API password from 讯飞控制台The script is at scripts/search.py relative to this skill directory.
bash
python3 scripts/search.py "搜索关键词"
FlagDescription--limit NMax results, 1–20 (default 10)--no-rerankDisable result reranking--no-fulltextDisable full text retrieval--rawOutput raw JSON instead of formatted text
bash
# 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
text
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
Returns the full API JSON response including data.search_results.documents[].content (full page text).
POST https://search-api-open.cn-huabei-1.xf-yun.com/v2/searchAuthorization: Bearer <XFYUN_API_PASSWORD>CodeMeaning0Success11200Authorization error or quota exceeded11201Daily rate limit exceeded11202Per-second rate limit exceeded11203Concurrent connection limit exceeded21001Missing parameters21009Unauthorized appId