返回顶部
b

baidu-qianfan-search

Call Baidu Qianfan web search APIs to search the live web with AppBuilder credentials and return structured results. Use when a task specifically needs Baidu/Qianfan search, Chinese web-heavy retrieval, site-filtered search, recency-filtered search, or a reusable local skill wrapping the `/v2/ai_search/web_search` endpoint.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.1
安全检测
已通过
68
下载量
0
收藏
概述
安装方式
版本历史

baidu-qianfan-search

# Baidu Qianfan Search Use this skill to query Baidu Qianfan's web search API and return structured search results without scraping websites directly. ## Quick start 1. Store the API key in an environment variable before running scripts: ```bash export QIANFAN_APPBUILDER_API_KEY='...' ``` Or keep it in a local untracked file such as `.env.local` and source it manually: ```bash set -a source ./.env.local set +a ``` 2. Run the bundled script: ```bash python3 scripts/qianfan_search.py "北京有哪些旅游景区" ``` 3. For raw JSON debugging: ```bash python3 scripts/qianfan_search.py "北京有哪些旅游景区" --raw ``` ## Common patterns ### Basic web search ```bash python3 scripts/qianfan_search.py "百度千帆平台" ``` ### Restrict to specific sites ```bash python3 scripts/qianfan_search.py "天气预报" --site weather.com.cn --site www.weather.com.cn ``` ### Filter by recency ```bash python3 scripts/qianfan_search.py "近期 AI 智能体新闻" --recency week ``` ### Request images or videos too ```bash python3 scripts/qianfan_search.py "故宫博物院" --web-top-k 5 --image-top-k 5 --video-top-k 3 --raw ``` ## Output handling - Default mode prints a normalized JSON object with `query`, `count`, `items`, and discovered `raw_keys`. - `--raw` prints the full upstream JSON for troubleshooting or adapting to API changes. - If Baidu changes response fields, inspect raw output first, then patch `scripts/qianfan_search.py`. ## Security rules - Never place the real API key in `SKILL.md` or `references/`. - Never publish `.env.local` to ClawHub. - Before packaging or publishing, delete any local secret files from the skill folder or ensure the publisher excludes them. ## References - Read `references/api.md` for the concise endpoint and parameter summary. - Use `scripts/qianfan_search.py` as the canonical wrapper for the API.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 baidu-smart-search-1775979601 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 baidu-smart-search-1775979601 技能

通过命令行安装

skillhub install baidu-smart-search-1775979601

下载 Zip 包

⬇ 下载 baidu-qianfan-search v0.1.1

文件大小: 4.24 KB | 发布时间: 2026-4-13 09:28

v0.1.1 最新 2026-4-13 09:28
Rename display and canonical slug to Baidu Smart Search

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部