首页龙虾技能列表 › Baidu Search Node — 百度搜索Node版

Baidu Search Node — 百度搜索Node版

v1.1.0

百度搜索引擎Node版,支持关键词搜索和结果获取。

0· 816·4 当前·4 累计
by @wsh66660 (wangsihong)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/8
安全扫描
VirusTotal
可疑
查看报告
OpenClaw
可疑
medium confidence
该技能的代码和指令与其所述目的(百度搜索Node版)一致,它使用百度API进行交互,请求适当的配置,不请求无关的凭证或意外端点。
评估建议
此技能似乎确实做到了它声称的:百度搜索引擎Node版,用于关键词搜索和结果获取。安装或运行之前:1) 确认您的百度API凭证已妥善配置,并且您对授予搜索访问权限感到满意。2) 仅在您信任的环境中运行,避免搜索敏感内容。3) 技能不请求凭证,但注意不要向脚本传递敏感的搜索关键词,除非您信任整个工具链。4) 如果您想要更高的保证,请在运行前在本地审查包含的脚本。...
详细分析 ▾
用途与能力
The skill description/summary suggests calling a Baidu search API, but the SKILL.md and baidusearch.js clearly implement web scraping of baidu.com (no API key required). This is a semantic mismatch: consumers expecting an official API client (stable query params, time/quality filters) will instead get an HTML scraper with brittle parsing. The SKILL.md explicitly contrasts this tool with an "official API" and admits it is a crawler.
指令范围
Runtime instructions tell the agent to run a local Node script via node/child_process.execSync and to install axios/cheerio/commander. The SKILL.md points to a hard-coded absolute path (/Users/mac/.openclaw/workspace/skills/...), which may not match other user environments and could cause the agent to execute unexpected local files if paths are different. Aside from calling the local script and performing outbound HTTP requests to baidu.com, the instructions do not ask the agent to read unrelated files or credentials.
安装机制
There is no automated install spec (instruction-only plus included code). Dependencies are standard Node packages (axios, cheerio, commander). The package-lock shows packages resolved from Chinese npm mirrors (r.cnpmjs.org / r2.cnpmjs.org) rather than the official registry; this is notable but consistent with typical mirrors and not inherently malicious.
凭证需求
The skill requests no environment variables, no credentials, and no config paths. That is proportionate to a web-scraping/search helper. No secrets-exfiltration indicators are declared in the SKILL.md or package files.
持久化与权限
always is false and the skill is user-invocable; it does not request permanent presence or claim to modify other skills. The SKILL.md shows the agent invoking a local script (normal for this skill type).
安装前注意事项
  1. accept that scraped HTML is brittle and may break or return unexpected content (and could include ads); (
  2. review the full baidusearch.js to ensure there are no hidden remote endpoints or unexpected behaviors (current code shows only requests to baidu.com); (
  3. be aware the SKILL.md uses a hard-coded /Users/mac path — update to a correct path for your environment to avoid executing unknown local files; (
  4. the package-lock references cnpm mirrors — if your environment requires packages from the official npm registry, re-install dependencies from registry.npmjs.org or inspect the packages; (
  5. run the skill in a sandbox or non-production environment first if you have concerns about scraping TOS or outbound network activity. If you expected an official Baidu API client (with API-key features or filters), do not rely on this skill.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.1.02026/2/27

初始版本,支持百度搜索Node版

● 可疑

安装命令 点击复制

官方npx clawhub@latest install baidu-search-node
镜像加速npx clawhub@latest install baidu-search-node --registry https://cn.clawhub-mirror.com

技能文档

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

激活条件

当用户提到:

  • 百度搜索
  • 用百度搜一下
  • baidu 搜索
  • 使用 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, --numnumber10返回结果数量
-d, --debugnumber0调试模式(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

注意事项

  • 需要 节点.js 环境
  • 依赖 axios、cheerio、commander 包
  • 搜索结果来自百度网页,可能包含广告
  • 建议设置合理的 超时 避免请求超时
  • 无需 API 键,开箱即用
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务