← 返回
未分类 Key

Baidu Smart 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...
调用百度千帆网页搜索API,使用AppBuilder凭证搜索实时网络并返回结构化结果。仅在任务需要百度特定搜索时使用。
windrunner20 windrunner20 来源
未分类 clawhub v0.1.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 313
下载
💾 0
安装
1
版本
#latest

概述

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:
export QIANFAN_APPBUILDER_API_KEY='...'

Or keep it in a local untracked file such as .env.local and source it manually:

set -a
source ./.env.local
set +a
  1. Run the bundled script:
python3 scripts/qianfan_search.py "北京有哪些旅游景区"
  1. For raw JSON debugging:
python3 scripts/qianfan_search.py "北京有哪些旅游景区" --raw

Common patterns

Basic web search

python3 scripts/qianfan_search.py "百度千帆平台"

Restrict to specific sites

python3 scripts/qianfan_search.py "天气预报" --site weather.com.cn --site www.weather.com.cn

Filter by recency

python3 scripts/qianfan_search.py "近期 AI 智能体新闻" --recency week

Request images or videos too

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.

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-05-07 11:03 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

knowledge-management

Summarize

paudyyin
智能摘要工具,自动为长文本、文档、网页生成摘要,提取要点与关键词,支持自定义摘要长度。
★ 957 📥 518,494
knowledge-management

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 444 📥 104,882
office-efficiency

Office Document Assistant

windrunner20
读取、抽取、摘要并比较办公文档(PDF、Word、Excel、PowerPoint),适用于用户提供 .pdf/.doc/.docx/.xls/.xlsx/.ppt/... 等文件。
★ 0 📥 859