Search

PythonReactSEOPDF
OpenClaw

Trip

Trip.com 携程 旅行助手

harrylabs09130 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install harrylabs0913/trip

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

Trip.com (携程) 旅行助手

携程网 (Trip.com / Ctrip.com) 自动化工具,支持机票搜索、酒店搜索、订单管理和价格监控。

功能

  • 机票搜索: 搜索航班并比较价格
  • 酒店搜索: 搜索酒店并筛选条件
  • 订单管理: 查看历史订单
  • 价格监控: 追踪产品价格变化
  • 扫码登录: 支持 QR 码登录

安装

# 安装 Python 依赖(playwright 等)
pip install -r requirements.txt

# 安装 Playwright 浏览器
playwright install chromium

使用方法

机票搜索
trip flight <出发地> <目的地> <日期>

示例:

trip flight 北京 上海 2026-03-15
trip flight 上海 深圳 2026-03-20 --json
酒店搜索
trip hotel <城市> <入住日期> <离店日期>

示例:

trip hotel 上海 2026-03-15 2026-03-17
trip hotel 北京 2026-04-01 2026-04-03 --json
查看订单
trip order
trip order --json
价格监控
trip price <链接>

示例:

trip price https://www.trip.com/hotels/shanghai-hotel/12345/
扫码登录
trip login

选项

  • --headless: 无头模式运行(不显示浏览器窗口)
  • --json: 以 JSON 格式输出结果

数据存储与安全

本地数据存储位置: ~/.openclaw/data/ecommerce/

文件 用途 安全说明
auth.db 登录会话信息 SQLite 数据库,本地存储
ecommerce.db 缓存和价格历史 不含敏感信息
trip_profile/ 浏览器配置文件 Playwright 用户数据目录
trip_cookies.json Cookie 文件 可选,用于保持登录状态

安全提示:

  • 所有数据仅存储在本地,不会上传到任何服务器
  • 建议仅在个人设备上使用,不要在共享设备上保存登录状态
  • 如需清除所有数据,删除 ~/.openclaw/data/ecommerce/ 目录即可

技术架构

  • 代码框架: 内置 ecommerce_core 模块(代码自包含,无外部模块依赖)
  • 运行时依赖: Playwright(浏览器自动化)、aiohttp、Pillow
  • 数据缓存: SQLite(本地存储)
  • 浏览器: Chromium via Playwright

依赖说明

代码层面: 本 skill 包含完整的 ecommerce_core/ 框架代码,不依赖外部 Python 模块导入。

运行时层面: 需要安装以下 Python 包(见 requir...

Source information

Source
github
Repository
openclaw/skills
Path
skills/harrylabs0913/trip
Version
—
Commit
779837651d45c222eda286604068d8b9275a87a6
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# Trip.com (携程) 旅行助手

携程网 (Trip.com / Ctrip.com) 自动化工具,支持机票搜索、酒店搜索、订单管理和价格监控。

## 功能

- **机票搜索**: 搜索航班并比较价格
- **酒店搜索**: 搜索酒店并筛选条件
- **订单管理**: 查看历史订单
- **价格监控**: 追踪产品价格变化
- **扫码登录**: 支持 QR 码登录

## 安装

```bash
# 安装 Python 依赖(playwright 等)
pip install -r requirements.txt

# 安装 Playwright 浏览器
playwright install chromium
```

## 使用方法

### 机票搜索

```bash
trip flight <出发地> <目的地> <日期>
```

示例:
```bash
trip flight 北京 上海 2026-03-15
trip flight 上海 深圳 2026-03-20 --json
```

### 酒店搜索

```bash
trip hotel <城市> <入住日期> <离店日期>
```

示例:
```bash
trip hotel 上海 2026-03-15 2026-03-17
trip hotel 北京 2026-04-01 2026-04-03 --json
```

### 查看订单

```bash
trip order
trip order --json
```

### 价格监控

```bash
trip price <链接>
```

示例:
```bash
trip price https://www.trip.com/hotels/shanghai-hotel/12345/
```

### 扫码登录

```bash
trip login
```

## 选项

- `--headless`: 无头模式运行(不显示浏览器窗口)
- `--json`: 以 JSON 格式输出结果

## 数据存储与安全

**本地数据存储位置:** `~/.openclaw/data/ecommerce/`

| 文件 | 用途 | 安全说明 |
|------|------|----------|
| `auth.db` | 登录会话信息 | SQLite 数据库,本地存储 |
| `ecommerce.db` | 缓存和价格历史 | 不含敏感信息 |
| `trip_profile/` | 浏览器配置文件 | Playwright 用户数据目录 |
| `trip_cookies.json` | Cookie 文件 | 可选,用于保持登录状态 |

**安全提示:**
- 所有数据仅存储在本地,不会上传到任何服务器
- 建议仅在个人设备上使用,不要在共享设备上保存登录状态
- 如需清除所有数据,删除 `~/.openclaw/data/ecommerce/` 目录即可

## 技术架构

- **代码框架**: 内置 `ecommerce_core` 模块(代码自包含,无外部模块依赖)
- **运行时依赖**: Playwright(浏览器自动化)、aiohttp、Pillow
- **数据缓存**: SQLite(本地存储)
- **浏览器**: Chromium via Playwright

## 依赖说明

**代码层面:** 本 skill 包含完整的 `ecommerce_core/` 框架代码,不依赖外部 Python 模块导入。

**运行时层面:** 需要安装以下 Python 包(见 requir...

Related skills

OpenClaw

openbotx

openbotx

An open-source platform for orchestrating AI agents — secure, simple, and built for everyone. Multi-agent, real-time task board, web control panel, skills system, browser automation, multi-provider, scheduler,...

OpenClaw

zsxq-digest

sealiu1997

OpenClaw skill for 知识星球 / ZSXQ digests with token-first auth and browser recovery.

OpenClaw

browser-use-skill

abczsl520

🌐 OpenClaw skill for Browser-Use — AI-powered browser automation for complex multi-step workflows (login, form filling, scraping, posting)