← 返回 Skills 市场
alexfeng75

携程酒店搜索

作者 alexfeng75 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
317
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ctrip-hotel-search
功能描述
自动搜索携程酒店,支持实时比价和详情获取。使用浏览器自动化技术,实现携程账号登录、酒店搜索、详情获取和对比分析功能。
使用说明 (SKILL.md)

携程酒店搜索 Skill

核心功能

  • ✅ 自动登录携程账号
  • ✅ 实时搜索酒店(按地点、日期、价格筛选)
  • ✅ 获取酒店详情和用户评价
  • ✅ 多酒店对比分析
  • ✅ 支持民宿/客栈搜索

使用场景

  • "搜索建水古城4月9日的酒店,价格200-400元"
  • "对比南沙镇3家民宿的优缺点"
  • "查找元阳梯田附近的特色民宿"

技术栈

  • Playwright(浏览器自动化)
  • Node.js(运行环境)
  • 携程网站(数据源)

配置要求

  1. 携程账号(用于登录)
  2. Node.js 16+ 环境
  3. Playwright 浏览器
安全使用建议
This skill's core Node/Playwright code is coherent with its description (it automates Ctrip login and scraping). However, the repository contains additional Python utilities that call an external API gateway (gateway.maton.ai) and require a MATON_API_KEY that the skill metadata and SKILL.md do not mention. Before installing or running it: - Do not run the Python scripts (search_hotels.py / search_with_brave.py) unless you understand and trust maton.ai and want outbound searches routed there. They will send queries and use an Authorization header with your MATON_API_KEY. - Ask the author to clarify why maton.ai is included and to explicitly declare MATON_API_KEY (or remove those scripts). A legitimate Ctrip Playwright skill does not need that external API. - Avoid storing your Ctrip credentials or any API keys directly in repo files (api_key_config.py or config.json) in plain text; prefer environment variables or a secure secret store. The package currently suggests editing config.json for username/password and api_key_config.py for MATON_API_KEY—both increase risk of accidental credential leakage. - Note the Node version mismatch: package.json claims Node 16+ but the Playwright package in lockfile requires Node >=18. Use Node 18+ to avoid runtime problems. - If you still want to test the skill, run it in an isolated/sandbox environment, inspect network traffic, and only install/run the Node Playwright flow after confirming the Python utilities are safe or removed. If the author can remove or document the external MATON dependency, declare required env vars, and align Node version requirements, the package would be much clearer and less suspicious.
功能分析
Type: OpenClaw Skill Name: ctrip-hotel-search Version: 1.0.0 The skill bundle is a legitimate automation tool designed to search and compare hotels on Ctrip using Playwright and Node.js. It includes modules for automated login (src/login.js), hotel searching (src/search.js), and data extraction (src/details.js). While the skill requires users to provide Ctrip credentials in a local configuration file and utilizes a third-party API gateway (gateway.maton.ai) for Brave Search queries, these behaviors are transparently documented and directly support the stated functionality. No evidence of malicious intent, credential exfiltration, or harmful prompt injection was found across the code or the extensive documentation.
能力评估
Purpose & Capability
The main Node.js code, SKILL.md and docs describe Playwright-driven Ctrip login/search and require a Ctrip account and Playwright. That is coherent. However, the repo also contains standalone Python utilities (search_hotels.py, search_with_brave.py, api_key_config.py) that call an external service (https://gateway.maton.ai) and require a MATON_API_KEY. The SKILL metadata and SKILL.md do not declare this API key or explain why an external search gateway is needed for a Ctrip automation skill.
Instruction Scope
SKILL.md instructs using config.json for Ctrip credentials and Playwright for browser automation, which matches the Node code. But it does not mention the included Python scripts or any dependence on an external 'maton.ai' gateway. The Python scripts will transmit search queries to gateway.maton.ai if executed; those instructions are not documented in SKILL.md, creating scope creep and unexpected outbound data flow if someone runs the extra scripts.
Install Mechanism
No install spec is declared (instruction-only), but package.json and package-lock.json exist and specify Playwright from the npm registry, which is typical. Minor inconsistency: package.json lists Node.js 16+ while package-lock/playwright require Node >=18. No downloads from unknown personal servers are present, and dependencies come from the npm registry.
Credentials
The skill package expects a Ctrip username/password in config.json (documented) but does not declare any required env vars in registry metadata. Meanwhile two Python files require MATON_API_KEY (either via api_key_config.py or environment variable), but MATON_API_KEY is not declared in the skill's requirements or docs. This undeclared external credential and the presence of api_key_config.py (which encourages placing a secret into a repo file) are disproportionate and warrant caution.
Persistence & Privilege
The skill does not request always:true, does not modify other skills' configs, and contains no service that enforces permanent presence. It runs as an invoked skill and closes the browser on completion. No privileged persistence was detected.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ctrip-hotel-search
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ctrip-hotel-search 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Automatic Ctrip hotel search with browser automation
元数据
Slug ctrip-hotel-search
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

携程酒店搜索 是什么?

自动搜索携程酒店,支持实时比价和详情获取。使用浏览器自动化技术,实现携程账号登录、酒店搜索、详情获取和对比分析功能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 317 次。

如何安装 携程酒店搜索?

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

携程酒店搜索 是免费的吗?

是的,携程酒店搜索 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

携程酒店搜索 支持哪些平台?

携程酒店搜索 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 携程酒店搜索?

由 alexfeng75(@alexfeng75)开发并维护,当前版本 v1.0.0。

💬 留言讨论