← 返回 Skills 市场
longjf25

Baidu Nearby / 百度能力集合

作者 juanfenglong · GitHub ↗ · v1.0.4 · MIT-0
cross-platform ⚠ suspicious
547
总下载
1
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install baidu-nearby
功能描述
百度能力集合 - 提供百度搜索和百度地图路线规划功能。 包含:百度网页搜索(baidu_search)、路线规划(baidu_direction)、附近场所推荐(baidu_nearby)。 Use when: 需要搜索网页、规划出行路线、查找附近餐饮/景点/酒店等位置服务时。
使用说明 (SKILL.md)

Baidu Nearby / 百度能力集合

Baidu capability suite providing search and location services. / 百度能力集合,提供搜索和位置服务。

Features / 功能

Command / 命令 Description / 说明
baidu_search Baidu web search / 百度网页搜索
baidu_direction Baidu Map route planning / 百度地图路线规划
baidu_nearby Nearby place recommendation / 附近场所推荐

Configuration / 配置

Set Baidu API Key (required for LBS location services) / 设置百度 API Key(LBS 位置服务需要):

export BAIDU_API_KEY="your_baidu_ak"

How to get AK / 获取 AK:

  1. Visit https://lbsyun.baidu.com/
  2. Register a developer account / 注册开发者账号
  3. Create an application to get AK / 创建应用获取 AK

Usage / 使用方法

Baidu Search / 百度搜索

python scripts/baidu_search.py "search_keywords" [result_count]

Route Planning / 路线规划

python scripts/baidu_direction.py "origin_address" "destination_address" [driving|riding|walking|transit]

Nearby Place Recommendation / 附近场所推荐

python scripts/baidu_nearby.py "location" [category] [radius_meters] [count]

Supported Categories / 支持的类别:

  • 餐饮/美食/餐厅 — Food & Dining
  • 娱乐/休闲 — Entertainment & Leisure
  • 景点/旅游/景区 — Attractions & Tourism
  • 酒店/住宿 — Hotels & Accommodation
  • 购物/商场/超市 — Shopping & Malls
  • 交通/地铁/公交 — Transportation

Examples / 示例:

# Search for food near Sanlitun / 搜索三里屯附近美食
python scripts/baidu_nearby.py "Sanlitun, Chaoyang District, Beijing" 餐饮 1000 5

# Search for attractions near Tiananmen / 搜索天安门附近景点
python scripts/baidu_nearby.py "Tiananmen" 景点 5000 10

# Search using coordinates / 使用坐标搜索
python scripts/baidu_nearby.py "39.9,116.4" 娱乐

Dependencies / 依赖

Pure Python standard library, no additional dependencies. / 纯 Python 标准库实现,无需额外依赖。

Security Notes / 安全说明

  • Uses system default SSL certificate verification / 使用系统默认 SSL 证书验证
  • Input parameters are validated and sanitized / 输入参数已做验证和清理
  • Only HTTP/HTTPS protocols supported / 仅支持 HTTP/HTTPS 协议
安全使用建议
This skill appears to implement exactly what it claims (Baidu search and map/nearby queries) and only needs a Baidu API key. Before installing: 1) Confirm and correct the metadata inconsistency (registry says no env vars while SKILL.md/code require BAIDU_API_KEY). 2) Only provide a BAIDU_API_KEY you trust for this purpose (do not reuse highly privileged keys). 3) Inspect the included scripts yourself or run them in a sandboxed environment (they perform network requests). 4) Note the _meta.json has a different version/timestamp than SKILL.md — ask the publisher for clarification if you don't trust the owner. If those discrepancies are resolved, the skill is coherent with its stated purpose.
功能分析
Type: OpenClaw Skill Name: baidu-nearby Version: 1.0.4 The baidu-nearby skill bundle provides legitimate integration with Baidu's search and LBS (Location Based Services) APIs. The scripts (baidu_search.py, baidu_direction.py, and baidu_nearby.py) demonstrate security-conscious coding practices, including input sanitization, coordinate range validation, and the use of default SSL contexts for secure communication. No evidence of data exfiltration, command injection, or malicious intent was found.
能力评估
Purpose & Capability
Name/description, SKILL.md, and the three Python scripts all implement Baidu web search, place search, and route planning and request only Baidu-related APIs. The requested credential (BAIDU_API_KEY / BAIDU_AK) is appropriate for the stated functionality. However, the registry-level requirements listed earlier (Required env vars: none) contradict SKILL.md and the code — a manifest inconsistency that should be clarified.
Instruction Scope
Runtime instructions are limited to exporting BAIDU_API_KEY and running the included Python scripts. The scripts perform HTTP(S) calls only to Baidu endpoints (api.map.baidu.com and www.baidu.com) and do not attempt to read unrelated system files, credentials, or send data to third-party endpoints.
Install Mechanism
No install spec (instruction-only) and the code uses only the Python standard library. No downloads from external or untrusted URLs are performed by an installer. The presence of code files with no installer is acceptable but means the scripts will run as-is when invoked.
Credentials
The only sensitive environment variables used in code are BAIDU_API_KEY and BAIDU_AK, which are sensible for Baidu LBS APIs. The proportionality is fine for the stated purpose. The notable issue is that the registry metadata reported 'Required env vars: none' while SKILL.md marks BAIDU_API_KEY as required and the scripts read it — this mismatch could lead to accidental omission of the API key or confusion about what credentials are needed.
Persistence & Privilege
Skill does not request elevated platform privileges (always:false), does not modify other skills' configs, and has no declared config path or persistence behavior. It only runs when invoked.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install baidu-nearby
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /baidu-nearby 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.4
v1.0.4: i18n SKILL.md (EN/ZH bilingual frontmatter and content), bilingual display name
v1.0.3
Fix transit route display to handle nested steps structure in baidu_direction.py
v1.0.2
Add credentials declaration for BAIDU_API_KEY in SKILL.md frontmatter to fix security scan warning
v1.0.1
- Refactored script organization: source files moved from root to scripts/ directory. - Removed non-standard dependencies; now uses only the Python standard library. - Updated usage instructions and categories in documentation for clarity. - Improved security note: input validation and SSL certificate verification clarified in readme.
v1.0.0
🗺️ 基于百度地图的附近场所推荐神器 根据任意地理位置,智能推荐周边的美食、景点、娱乐、酒店等场所。支持地址或坐标输入,实时获取评分、价格、距离和电话等完整信息。 ✨ 核心特性: • 多类别搜索:餐饮、娱乐、景点、酒店、购物、交通 • 自然语言查询:直接说"火锅"、"KTV"即可搜索 • 灵活定位:支持"北京市三里屯"或"39.9,116.4"坐标 • 完整信息:评分⭐、价格💰、距离📏、电话📞 🎯 适用场景: 旅行规划、本地探店、商务出行、周末游玩 📖 使用示例: python scripts/baidu_nearby.py "上海外滩" 美食 2000 5
元数据
Slug baidu-nearby
版本 1.0.4
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 5
常见问题

Baidu Nearby / 百度能力集合 是什么?

百度能力集合 - 提供百度搜索和百度地图路线规划功能。 包含:百度网页搜索(baidu_search)、路线规划(baidu_direction)、附近场所推荐(baidu_nearby)。 Use when: 需要搜索网页、规划出行路线、查找附近餐饮/景点/酒店等位置服务时。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 547 次。

如何安装 Baidu Nearby / 百度能力集合?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install baidu-nearby」即可一键安装,无需额外配置。

Baidu Nearby / 百度能力集合 是免费的吗?

是的,Baidu Nearby / 百度能力集合 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Baidu Nearby / 百度能力集合 支持哪些平台?

Baidu Nearby / 百度能力集合 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Baidu Nearby / 百度能力集合?

由 juanfenglong(@longjf25)开发并维护,当前版本 v1.0.4。

💬 留言讨论