← All skills
Tencent SkillHub · Developer Tools

Baidu Search Node

通过 Node.js 脚本调用百度搜索 API,可按关键字和数量参数获取排序、标题、摘要和链接的搜索结果。

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

通过 Node.js 脚本调用百度搜索 API,可按关键字和数量参数获取排序、标题、摘要和链接的搜索结果。

⬇ 0 downloads ★ 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, baidusearch.js, package-lock.json, package.json

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.1.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 11 sections Open source page

Baidu Search Skill

百度搜索命令行工具,通过 Node.js 脚本爬取百度搜索结果(无需 API key)。

激活条件

当用户提到: 百度搜索 用百度搜一下 baidu search 使用 baidu_search 工具

工具实现

使用 baidusearch.js 脚本,位于 /Users/mac/.openclaw/workspace/skills/baidu-search/baidusearch.js

使用方式

# 基本搜索 node baidusearch.js "搜索内容" # 指定结果数量 node baidusearch.js "搜索内容" -n 10 # 调试模式 node baidusearch.js "搜索内容" -n 5 -d 1

参数说明

参数类型必需默认值说明[keyword]string是-搜索关键字-n, --numnumber否10返回结果数量-d, --debugnumber否0调试模式(0-关闭,1-打开)

返回格式

每条搜索结果包含: rank - 排名 title - 标题 abstract - 摘要/描述 url - 链接

与百度官方 API 技能对比

功能baidu-search-node (本技能)baidu-search (官方 API)API Key❌ 不需要✅ 需要 BAIDU_API_KEY资源类型过滤❌ 仅网页✅ web/video/image/aladdin时间过滤❌ 不支持✅ week/month/semiyear/year网站过滤❌ 不支持✅ 匹配/屏蔽网站安全搜索❌ 不支持✅ 支持实现方式网页爬虫百度千帆 API

配置

在 openclaw.json 中添加: { tools: { baiduSearch: { enabled: true, scriptPath: "/Users/mac/.openclaw/workspace/skills/baidu-search/baidusearch.js", defaultCount: 5, timeout: 30000, }, }, }

使用方法

// 执行百度搜索 const { execSync } = require('child_process'); function baiduSearch(query, count = 5) { const scriptPath = '/Users/mac/.openclaw/workspace/skills/baidu-search/baidusearch.js'; const cmd = `node "${scriptPath}" "${query}" -n ${count}`; const output = execSync(cmd, { encoding: 'utf-8' }); return parseOutput(output); }

依赖安装

# 进入 skill 目录 cd /Users/mac/.openclaw/workspace/skills/baidu-search # 安装依赖 npm install axios cheerio commander

注意事项

需要 Node.js 环境 依赖 axios、cheerio、commander 包 搜索结果来自百度网页,可能包含广告 建议设置合理的 timeout 避免请求超时 无需 API key,开箱即用

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
2 Config1 Docs1 Scripts
  • SKILL.md Primary doc
  • baidusearch.js Scripts
  • package-lock.json Config
  • package.json Config