返回顶部
f

flightclaw航班价格追踪

Track flight prices using Google Flights data. Search flights, find cheapest dates, filter by airline/time/duration/price, track routes over time, and get alerts when prices drop. Also runs as an MCP server. Requires Python 3.10+ and the 'flights' and 'mcp' pip packages. Run setup.sh to install dependencies.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
1,328
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

flightclaw

flightclaw

从Google Flights追踪航班价格。搜索航线,监控价格变化,并在价格下降时收到提醒。

安装

bash
npx skills add jackculpan/flightclaw

或手动安装:

bash
bash skills/flightclaw/setup.sh

脚本

搜索航班

查找特定航线和日期的航班。支持多个机场和日期范围。

bash
python skills/flightclaw/scripts/search-flights.py LHR JFK 2025-07-01
python skills/flightclaw/scripts/search-flights.py LHR JFK 2025-07-01 --cabin BUSINESS
python skills/flightclaw/scripts/search-flights.py LHR JFK 2025-07-01 --return-date 2025-07-08
python skills/flightclaw/scripts/search-flights.py LHR JFK 2025-07-01 --stops NON_STOP --results 10

多个机场(搜索所有组合)


python skills/flightclaw/scripts/search-flights.py LHR,MAN JFK,EWR 2025-07-01

日期范围(搜索每一天)


python skills/flightclaw/scripts/search-flights.py LHR JFK 2025-07-01 --date-to 2025-07-05

两者结合


python skills/flightclaw/scripts/search-flights.py LHR,MAN JFK,EWR 2025-07-01 --date-to 2025-07-03

参数:

  • - origin - IATA机场代码,逗号分隔(例如 LHR 或 LHR,MAN)
  • destination - IATA机场代码,逗号分隔(例如 JFK 或 JFK,EWR)
  • date - 出发日期(YYYY-MM-DD)
  • --date-to - 日期范围结束(YYYY-MM-DD)。从起始日期到结束日期(含)逐天搜索。
  • --return-date - 往返航班的返程日期(YYYY-MM-DD)
  • --cabin - ECONOMY(默认)、PREMIUMECONOMY、BUSINESS、FIRST
  • --stops - ANY(默认)、NONSTOP、ONESTOP、TWOSTOPS
  • --results - 结果数量(默认:5)

追踪航班

将航线添加到价格追踪列表并记录当前价格。支持多个机场和日期范围(为每个组合创建独立的追踪条目)。

bash
python skills/flightclaw/scripts/track-flight.py LHR JFK 2025-07-01
python skills/flightclaw/scripts/track-flight.py LHR JFK 2025-07-01 --target-price 400
python skills/flightclaw/scripts/track-flight.py LHR JFK 2025-07-01 --return-date 2025-07-08 --cabin BUSINESS

追踪多个机场和日期


python skills/flightclaw/scripts/track-flight.py LHR,MAN JFK,EWR 2025-07-01 --date-to 2025-07-03 --target-price 400

参数:

  • - 与search-flights相同,另加:
  • --target-price - 当价格低于此金额时发出提醒

检查价格

检查所有已追踪航班的价格变化。设计用于定时运行(cron)。

bash
python skills/flightclaw/scripts/check-prices.py
python skills/flightclaw/scripts/check-prices.py --threshold 5

参数:

  • - --threshold - 触发提醒的价格下降百分比(默认:10)

输出:报告已追踪航班的价格变化。突出显示价格下降并在达到目标价格时发出提醒。

列出已追踪航班

显示所有正在追踪的航班及其当前价格与原始价格对比。

bash
python skills/flightclaw/scripts/list-tracked.py

MCP服务器

FlightClaw也可以作为MCP服务器运行,具有扩展的搜索功能:

bash
pip install flights mcp[cli]
claude mcp add flightclaw -- python3 server.py

MCP工具:searchflights、searchdates、trackflight、checkprices、listtracked、removetracked

额外的MCP过滤器:乘客数量(成人/儿童/婴儿)、航空公司筛选、价格上限、最长飞行时长、出发/到达时间限制、中转时长、排序方式以及最便宜日期日历搜索。

货币

价格根据用户IP位置以当地货币显示。货币从Google Flights API响应中自动检测,并以正确的符号显示(例如 $、£、฿、€)。已追踪的航班将货币代码存储在tracked.json中。

数据

价格历史记录存储在skills/flightclaw/data/tracked.json中,并通过R2备份持久化保存。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 flightclaw-1776420038 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 flightclaw-1776420038 技能

通过命令行安装

skillhub install flightclaw-1776420038

下载

⬇ 下载 flightclaw v1.0.1(免费)

文件大小: 16.01 KB | 发布时间: 2026-4-17 19:24

v1.0.1 最新 2026-4-17 19:24
FlightClaw 1.0.1 is a major update with expanded search and tracking features, improved script flexibility, and a new MCP server mode.

- Renamed from "travelclaw" to "flightclaw"
- Added support for multiple airports and date ranges in search and tracking scripts
- New MCP server (server.py) provides command tools, advanced filters, calendar search, and integration features
- Enhanced filtering: search or limit by airline, time of day, price, flight/layover duration, and sort order
- Outputs prices in user-local currency, auto-detected and tracked per route
- Updated setup instructions, install options, and expanded SKILL.md documentation

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部