← 返回
未分类 Key

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
使用 iFlytek ONESEARCH API(万搜/聚合搜索)进行网络搜索,返回标题、摘要、网址和网页全文,适用于中文网络搜索。
kokkmiao kokkmiao 来源
未分类 clawhub v2.0.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 232
下载
💾 0
安装
1
版本
#latest

概述

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
  • 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

版本历史

共 1 个版本

  • v2.0.1 当前
    2026-05-21 15:15 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 213 📥 70,906
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 297 📥 142,452
data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 275 📥 101,212