agentleFS
L-LesterYuL-LesterYu/OpenClaw-hot-skills-zh/skills/baidu-search-zh/SKILL.md

baidu-search-zh

Skill56 starsChanged 9 months agoMITView on GitHub

使用百度 AI 搜索引擎进行网页搜索。适用于实时信息查询、文档检索或研究主题。

  • Reads credentials

The file

Files
SKILL.md

百度搜索

通过百度 AI 搜索 API 进行网页搜索。

前置条件

API 密钥配置

本技能需要配置 BAIDU_API_KEY 环境变量。

如果您还没有 API 密钥,请访问: https://console.bce.baidu.com/ai-search/qianfan/ais/console/apiKey

详细的配置步骤请参阅: references/apikey-fetch.md

使用方法

python3 skills/baidu-search-zh/scripts/search.py '<JSON>'

请求参数

参数类型必填默认值说明
querystr是-搜索关键词
countint否10返回结果数量,范围 1-50
freshnessstr否无时间范围,两种格式:格式一为 "YYYY-MM-DDtoYYYY-MM-DD";格式二包括 pd、pw、pm、py,分别代表过去 24 小时、过去 7 天、过去 31 天和过去 365 天

示例

# 基础搜索
python3 scripts/search.py '{"query":"人工智能"}'

# 时间范围格式一 "YYYY-MM-DDtoYYYY-MM-DD" 示例
python3 scripts/search.py '{
  "query":"最新新闻",
  "freshness":"2025-09-01to2025-09-08"
}'

# 时间范围格式二 pd、pw、pm、py 示例
python3 scripts/search.py '{
  "query":"最新新闻",
  "freshness":"pd"
}'

# 设置 count 参数,指定返回结果数量
python3 scripts/search.py '{
  "query":"旅游景点",
  "count": 20
}'

当前状态

功能完全正常。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.