← Back to Skills Marketplace
alexfeng75

携程酒店搜索

by alexfeng75 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
317
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install ctrip-hotel-search
Description
自动搜索携程酒店,支持实时比价和详情获取。使用浏览器自动化技术,实现携程账号登录、酒店搜索、详情获取和对比分析功能。
README (SKILL.md)

携程酒店搜索 Skill

核心功能

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

使用场景

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

技术栈

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

配置要求

  1. 携程账号(用于登录)
  2. Node.js 16+ 环境
  3. Playwright 浏览器
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ctrip-hotel-search
  3. After installation, invoke the skill by name or use /ctrip-hotel-search
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: Automatic Ctrip hotel search with browser automation
Metadata
Slug ctrip-hotel-search
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 携程酒店搜索?

自动搜索携程酒店,支持实时比价和详情获取。使用浏览器自动化技术,实现携程账号登录、酒店搜索、详情获取和对比分析功能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 317 downloads so far.

How do I install 携程酒店搜索?

Run "/install ctrip-hotel-search" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 携程酒店搜索 free?

Yes, 携程酒店搜索 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 携程酒店搜索 support?

携程酒店搜索 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 携程酒店搜索?

It is built and maintained by alexfeng75 (@alexfeng75); the current version is v1.0.0.

💬 Comments