返回顶部
v

variflight-global-flight-fares

Variflight Global Flight Fares searches one-way flight fares from the Variflight ticket API by departure IATA city code, arrival IATA city code, and departure date.

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

variflight-global-flight-fares

# Variflight Global Flight Fares ## Overview Use the bundled script to query the Variflight ticket API and return one-way flight options for a single route and date. ## Workflow 1. Collect `dep`, `arr`, and `date`. 2. Validate `dep` and `arr` as three-letter IATA city codes and `date` as `YYYY-MM-DD`. 3. If the user gives city names instead of codes, infer only when the mapping is unambiguous; otherwise ask for the IATA codes. 4. Run `python3 scripts/query_flights.py --dep BJS --arr SHA --date 2026-04-21`. 5. Summarize the result with departure airport, arrival airport, times, duration, price, transfer info, and the flight tag text. ## Output Rules - Treat API `code != 0` as a failure and surface the returned `msg`. - Treat an empty `data.list` as a valid "no flights found" result. - Use `--limit N` when the user only wants a subset of results. - Use `--json` only when the user asks for raw payload data. - Mention transfer flights separately from direct flights when summarizing. - Do not ask the user to provide an API key for this skill. ## Script - `scripts/query_flights.py` accepts: - `--dep` - `--arr` - `--date` - `--limit` - `--json` - The script sends the fixed request parameter `flightNum=10`. ## Example Run `python3 scripts/query_flights.py --dep BJS --arr SHA --date 2026-04-21 --limit 5` to fetch the first five displayed results for Beijing to Shanghai on April 21, 2026.

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 variflight-global-flight-fares-1776079343 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 variflight-global-flight-fares-1776079343 技能

通过命令行安装

skillhub install variflight-global-flight-fares-1776079343

下载 Zip 包

⬇ 下载 variflight-global-flight-fares v1.0.0

文件大小: 4.24 KB | 发布时间: 2026-4-14 10:50

v1.0.0 最新 2026-4-14 10:50
Initial release of Variflight Global Flight Fares.

- Search one-way flight fares using the Variflight ticket API with departure and arrival IATA codes and date.
- Validates input format for IATA codes and departure date (YYYY-MM-DD).
- Handles ambiguous city names by prompting for correct codes.
- Summarizes results including airports, times, duration, price, transfers, and flight tags.
- Surface API error messages and provide clear feedback for empty results.
- Script supports result limiting and raw JSON output on user request.

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

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

p2p_official_large
返回顶部