← Back to Skills Marketplace
nodermachine

travel flight monitor

by nodermachine · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ Security Clean
817
Downloads
1
Stars
2
Active Installs
4
Versions
Install in OpenClaw
/install fliggy-flight-monitor
Description
监控飞猪机票价格,支持单程和往返查询,自动提醒低价,定时获取价格变动和趋势分析。
README (SKILL.md)

飞猪机票价格监控 Skill

一个用于监控机票价格并在低价时自动通知的智能技能。支持单程和往返查询,可设置价格阈值,定时监控价格变化。


🚀 快速开始

一键查询机票

查一下北京到三亚 3 月 25 日的机票价格
查询杭州到西安 3 月 26 日,低于 500 元的机票
帮我看看上海飞成都,下周六的往返票

设置价格监控

帮我监控北京到三亚 3 月 25 日机票,每天查一次,低于 1500 提醒我
监控杭州到西安 3 月 26 日,每 6 小时查一次,低于 500 通知我
监控深圳飞东京 4 月 1 日,每天早晚各查一次

管理监控任务

查看我所有的机票监控任务
暂停北京到三亚的监控
删除杭州到西安的监控任务
显示北京到三亚的价格趋势

✨ 核心功能

1. 机票价格查询

查询 URL 模板:

单程:

https://sjipiao.fliggy.com/flight_search_result.htm?tripType=0&depCity={出发城市代码}&arrCity={到达城市代码}&depDate={日期}&depCityName={出发城市名}&arrCityName={到达城市名}

往返:

https://sjipiao.fliggy.com/flight_search_result.htm?tripType=1&depCity={出发城市代码}&arrCity={到达城市代码}&depDate={出发日期}&arrDate={返回日期}&depCityName={出发城市名}&arrCityName={到达城市名}

城市代码对照表:

城市 代码
北京 BJS
上海 SHA
广州 CAN
深圳 SZX
杭州 HGH
成都 CTU
三亚 SYX
西安 SIA
昆明 KMG
重庆 CKG

2. 价格监控

监控配置示例:

{
  "name": "机票监控 - 北京 - 三亚 03-25",
  "schedule": {
    "kind": "cron",
    "expr": "0 9 * * *",
    "tz": "Asia/Shanghai"
  },
  "payload": {
    "kind": "agentTurn",
    "message": "查询北京到三亚 3 月 25 日机票价格,低于 1500 元通知用户"
  },
  "sessionTarget": "isolated"
}

3. 价格历史记录

保存到 memory/flight-monitor/{航线}-{日期}.md

# 北京 - 三亚 机票价格监控

## 监控信息
- 航线:北京 → 三亚
- 出发日期:2026-03-25
- 低价阈值:¥1500
- 监控频率:每天 9:00

## 价格记录
| 日期 | 时间 | 价格 | 航班 | 变化 |
|------|------|------|------|------|
| 03-13 16:00 | ¥320 | 川航3U3113 | - |
| 03-14 09:00 | ¥310 | 川航3U3113 | ↓¥10 |

## 价格趋势

日期 价格 03-13 ¥320 03-14 ¥310 ↓


📋 使用参数

参数 必填 说明 示例
出发地 城市名或代码 北京/BJS
目的地 城市名或代码 三亚/SYX
出发日期 日期 2026-03-25
返回日期 往返时需要 2026-03-30
监控频率 多久查一次 每天/每6小时
低价阈值 低于多少提醒 ¥1500
监控截止 监控到哪天 监控到3月18日

🔧 技术实现

查询流程

  1. 构建查询 URL

    • 根据单程/往返选择 tripType
    • 转换城市名到代码
    • URL 编码中文城市名
  2. 浏览器自动化

    await browser.open(profile="openclaw", url=queryUrl)
    await browser.wait(5000)
    const snapshot = await browser.snapshot()
    
  3. 解析价格信息

    • 从 snapshot 提取航班列表
    • 找到最低价航班
    • 记录价格变化趋势
  4. 通知用户

    • 价格低于阈值时发送提醒
    • 包含航班信息和订票链接

Cron 任务

cron.add({
  name: "机票监控 - {航线}",
  schedule: { kind: "cron", expr: "0 9 * * *" },
  payload: { kind: "agentTurn", message: "查询{航线}价格..." },
  sessionTarget: "isolated"
})

📦 输出格式

查询结果

## ✈️ 机票查询结果

**航线:** 北京 → 三亚  
**日期:** 2026-03-25(周三)

### 最低价航班

| 航班 | 价格 | 时间 | 准点率 |
|------|------|------|--------|
| 川航 3U3113 | ¥320 | 21:55-01:55+1 | 93.33% |

### 一周价格趋势
- 03-23:¥282 ← 最低
- 03-24:¥306
- 03-25:¥320 ← 当前
- 03-26:¥307

### 订票链接
[立即预订](https://sjipiao.fliggy.com/...)

低价提醒

🔔 低价提醒!

北京 → 三亚 3 月 25 日
当前价:¥320(低于你的阈值¥1500)
航班:川航3U3113 21:55-01:55+1

[立即预订](链接)

🎯 使用场景

1. 提前规划出行

监控北京到三亚 5 月 1 日机票,每天查一次

2. 错峰出行捡漏

监控上海到成都 3 月 20 日前后 3 天,哪天最便宜

3. 商务出行提醒

监控北京到上海 每周一早班机,低于 800 元提醒我

4. 紧急出行

查一下深圳到北京 今天的机票,低于 1000 的

⚙️ 配置要求

浏览器配置

  • 使用 openclaw profile
  • 保持登录状态
  • PC 端 URL 更稳定

⚠️ 注意事项

  1. 价格变动 - 机票价格实时变化,查询结果有延迟
  2. 验证码 - 可能遇到滑块验证码,需人工处理
  3. 余票紧张 - 低价票可能很快售罄
  4. 监控频率 - 建议合理设置,避免频繁请求
  5. 城市代码 - 确保使用正确的城市代码

📊 监控频率建议

出行时间 建议频率 说明
提前 1 个月+ 每天 1 次 时间充裕
提前 2 周 每 12 小时 开始关注
提前 1 周 每 6 小时 价格波动加大
提前 3 天 每 3 小时 随时可能涨价

🔗 相关链接

  • 飞猪机票:https://www.fliggy.com/jipiao/
  • ClawHub:https://clawhub.com
  • OpenClaw 文档:https://docs.openclaw.ai

📝 更新日志

v1.0.0 (2026-03-13)

  • ✅ 支持单程和往返查询
  • ✅ 支持价格监控和低价提醒
  • ✅ 支持价格趋势分析
  • ✅ 支持 Cron 定时任务
  • ✅ 完善的错误处理

👤 作者信息

  • 作者: Luna
  • 版本: 1.0.0
  • 许可: MIT
  • 发布日期: 2026-03-13

🤝 贡献

欢迎在 ClawHub 上提交反馈和建议!

Usage Guidance
This skill appears to do what it says (monitor Fliggy prices) and asks for nothing unusual. Before installing, be aware it expects to open pages using a browser profile (profile="openclaw") and recommends keeping that profile logged into Fliggy — the agent’s page snapshots could include account-related information if the profile is logged in. It will create scheduled cron tasks and store price history in agent memory (memory/flight-monitor/...). If you don’t want the agent to use a logged-in browser session, avoid keeping Fliggy credentials in the profile or clarify how the agent should access pages. Also consider rate limits and Fliggy’s terms of service when scheduling frequent checks.
Capability Analysis
Type: OpenClaw Skill Name: fliggy-flight-monitor Version: 1.0.3 The skill is a legitimate flight price monitoring tool for the Fliggy platform. It uses standard OpenClaw browser automation (`browser.open`, `browser.snapshot`) and scheduling (`cron.add`) to track prices and notify users based on defined thresholds. The instructions in SKILL.md and the configuration examples in references/monitor-config-examples.md are entirely consistent with the stated purpose, and no evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
Capability Assessment
Purpose & Capability
Name/description (flight price monitoring for Fliggy) matches the instructions: building Fliggy search URLs, using browser automation to capture snapshots, parsing prices, storing price history, and scheduling cron checks. No unrelated binaries or credentials are requested.
Instruction Scope
Instructions are generally within scope, but they require using a browser profile (profile="openclaw") and the skill asks to “保持登录状态” (keep logged-in). That means the agent will open Fliggy pages using an existing browser session and capture snapshots — these snapshots could contain user-account-related data if the profile is logged in. The SKILL.md also instructs creating cron tasks and writing price history into agent memory paths (memory/flight-monitor/...), which is expected for monitoring but worth noting for privacy.
Install Mechanism
Instruction-only skill with no install spec and no code files executed. No downloads or third-party packages are installed by the skill itself.
Credentials
The skill declares no required environment variables, credentials, or config paths. The actions described (browser automation, snapshots, storing markdown files) do not require sensitive environment variables beyond the user’s browser session state; the SKILL.md does not request unrelated secrets.
Persistence & Privilege
The skill expects to register cron tasks (cron.add) to run periodic checks and to write monitoring files into agent memory. This is appropriate for a scheduler/monitoring skill but does create persistent scheduled activity and stored price history — users should be aware of the ongoing background checks and stored data.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install fliggy-flight-monitor
  3. After installation, invoke the skill by name or use /fliggy-flight-monitor
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.3
No user-facing changes in this version. - Internal version update; no changes to files or documentation.
v1.0.2
No user-facing changes in this version. - No file changes detected. - Functionality and documentation remain the same as previous version.
v1.0.1
v1.0.1 is a minor update with a documentation wording tweak. - 去掉描述中的“飞猪”字样,标题外将“飞猪机票价格监控”改为“机票价格监控” - 功能和用法均未变,代码未做修改
v1.0.0
fliggy-flight-monitor v1.0.0 - 首次发布,支持飞猪机票价格监控与查询 - 支持单程和往返机票价格查询 - 可设置价格阈值和定时任务,自动通知低价信息 - 支持查看和管理监控任务,展示价格趋势 - 输出格式丰富,包含详细航班信息和订票链接 - 提供城市代码对照表,方便快速查询
Metadata
Slug fliggy-flight-monitor
Version 1.0.3
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 4
Frequently Asked Questions

What is travel flight monitor?

监控飞猪机票价格,支持单程和往返查询,自动提醒低价,定时获取价格变动和趋势分析。 It is an AI Agent Skill for Claude Code / OpenClaw, with 817 downloads so far.

How do I install travel flight monitor?

Run "/install fliggy-flight-monitor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is travel flight monitor free?

Yes, travel flight monitor is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does travel flight monitor support?

travel flight monitor is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created travel flight monitor?

It is built and maintained by nodermachine (@nodermachine); the current version is v1.0.3.

💬 Comments