技能详情(站内镜像,无评论)
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v0.3.3
统计:⭐ 2 · 482 · 2 current installs · 2 all-time installs
⭐ 2
安装量(当前) 2
🛡 VirusTotal :良性 · OpenClaw :良性
Package:ai4mse/flyclaw
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :良性
OpenClaw 评估
The skill's files, instructions, and dependencies are consistent with a multi-source flight-aggregation CLI: it requests no unrelated credentials and its network/file actions match the documented purpose.
目的
Name/description match the code and docs: modules implement Google Flights, FR24, Skiplagged and ADS-B sources, airport lookup, caching, and CLI entrypoints. Required capabilities (HTTP, local cache) are proportional to a flight-aggregation tool.
说明范围
SKILL.md instructs running the included Python CLI and installing standard PyPI libs; runtime behavior (reading config.yaml, using cache/*.json, writing route cache and airport files) is expected. One feature lets you update airport data from an arbitrary URL (update_from_url) — this is a legitimate update mechanism but means the tool may fetch and replace local airport data if you run that command or configure an update URL.
安装机制
There is no install spec in the skill manifest; SKILL.md recommends pip installing dependencies from PyPI (requests, pyyaml, curl_cffi, flights). That is standard and traceable; no remote ad-hoc archive downloads or bootstrap scripts were found in the package.
证书
The skill declares no required environment variables or credentials. The code supports an optional serpapi_key/config entries but leaving them empty is consistent with the 'zero API key' claim. No unrelated secret access was detected.
持久
Skill does persist local caches (cache/*.json, route cache) and reads/writes its own config files only. always:false and no system-level modifications were found. Persistence is limited to the skill's own files.
综合结论
This package appears to do what it claims: query public flight data, merge results, and store local caches. Before installing, consider: (1) review and install dependencies from PyPI only (requests, pyyaml, curl_cffi, flights) and vet the 'flights' and 'curl_cffi' packages if you want extra assurance; (2) the tool will make outbound HTTP requests to public endpoints (fr24, airplanes.live, adsb.lol, skiplagged, Google Flights via the 'flights' …
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「FlyClaw」。简介:4-source flight aggregation — tickets, nonstop, round-trip, cabin. 航班机票/零登录/零AP…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/ai4mse/flyclaw/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: flyclaw
description: 4-source flight aggregation — tickets, nonstop, round-trip, cabin. 航班机票/零登录/零API, zero login, zero account, zero API key. Pure Python, no browser. 机票价格/航班动态/直飞筛选.
version: 0.3.3
icon: ✈️
author: nuaa02@gmail.com
license: Apache-2.0
acceptLicenseTerms: "Apache-2.0"
---
# FlyClaw ✈️ - 航班信息聚合查询工具 / Flight Information Aggregation Tool
## 概述 / Overview
**四源航班聚合查询 — 零登录、零账号、零 API Key,轻量 Python 实现。**
**4-source flight aggregation — zero login, zero account, zero API key. Lightweight Python, no browser automation.**
基于多源聚合架构,通过开源库及免费公开 API 获取航班动态、价格、时刻、实时位置等信息。支持中英文城市名和 IATA 代码输入。
Multi-source aggregation via open-source libraries and free public APIs for flight dynamics, prices, schedules, and real-time positions. Supports Chinese/English city names and IATA codes.
**GitHub**:[https://github.com/AI4MSE/FlyClaw](https://github.com/AI4MSE/FlyClaw)
## 零 API Key 依赖 / Zero API Key
无需注册任何账号或提供任何 API Key 即可使用全部核心功能。用户本地化掌控所有,程序不收集、不存储任何用户个人信息。同时规避浏览器模拟等复杂、不可靠和低效问题。
No registration or API key required. All data stays local — no personal data collected or stored. No browser automation overhead.
## 触发方式 / Trigger
用户说"查航班 CA981"、"上海飞纽约多少钱"、"PVG 到 JFK 明天的航班"、"往返机票 上海到新加坡"、"商务舱 北京到伦敦"、"所有航班包括转机"、"直飞" 等即可自动执行。默认查询行为是直飞+经济舱。
Trigger when user says "query flight CA981", "flights from Shanghai to New York", "round-trip PVG to SIN", "business class Beijing to London", "nonstop flights", "all flights including connecting", etc. Default behavior is nonstop + economy.
**智能转换规则 / Smart Conversion Rules**:
- 用户说"所有航班"/"包括转机"/"包括非直飞" → `--stops any`
- 用户说"直飞"/"不要转机" → `--stops 0`(默认)
- 用户说"最多一次中转" → `--stops 1`
- 用户说"最多两次中转" → `--stops 2`
## 数据来源 / Data Sources
- **Google Flights**:国内外国际航班价格、时刻
- **Skiplagged**:国内外国际航班价格、时刻
- **FlightRadar24**:航班动态、实时状态、延误、机型
- **Airplanes.live / ADSB.lol**:ADS-B 实时位置
多源并发查询,智能合并互补。**插件式架构,支持无限扩展**——每个数据源为独立模块。特别感谢以上公开数据源为公益和大众需求提供的便利!
## 功能 / Features
1. **按航班号查询**:查询指定航班的动态信息(状态、时刻、延误、机型等)
2. **按航线搜索**:查询两地之间的航班列表(含价格、经停、时长等)
3. **城市级搜索**:输入城市名自动搜索该城市所有机场(如"上海"→PVG+SHA)
4. **高级搜索**:往返搜索、多旅客配置、舱位选择、排序、直飞过滤
5. **中英文输入**:支持中文城市名、英文名、IATA 代码,7912 机场全覆盖
## 重要:输出格式与多日查询 / Output Format & Multi-Day Queries
**默认输出为 JSON**(stdout),直接 `json.loads()` 即可解析,示例:
```json
[{"flight_number": "CA981", "price": 472.0, "origin_iata": "PVG", "destination_iata": "GVA", ...}]
```
无结果时返回 `[]`。错误和日志仅输出到 stderr,不影响 JSON 解析。价格单位默认为**美元(USD)**。可用 `-o table` 切换为人类可读表格。
**多日查询**:search 命令每次只查一天。查询一周最低价等场景,需拆成多个日期**并发执行**,分别获取 JSON 结果后自行合并比较。
## 调用方式 / Usage
### 按航班号查询
```bash
python flyclaw.py query --flight CA981
```
### 按航线搜索
```bash
python flyclaw.py search --from 上海 --to 纽约 --date 2026-04-01
```
### 往返搜索
```bash
python flyclaw.py search --from PVG --to LAX --date 2026-04-15 --return 2026-04-25
```
### 商务舱 + 2 人
```bash
python flyclaw.py search --from PVG --to JFK --date 2026-04-15 --cabin business -a 2
```
### 直飞 + 按价格排序
```bash
python flyclaw.py search --from PVG --to SIN --date 2026-04-15 --stops 0 --sort cheapest
```
### 包含经停航班
```bash
python flyclaw.py search --from PVG --to JFK --date 2026-04-15 --stops any
```
### 按日期过滤查询结果
```bash
python flyclaw.py query --flight CA981 --date 2026-04-01
python flyclaw.py query --flight CA981 --date today
```
### 关闭智能查价
默认启用智能查价,会自动在航班号查询时补充价格信息。关闭后可节约查询时间。
```bash
python flyclaw.py query --flight CA981 --no-relay
```
### 搜索参数
| 参数 | 短标志 | 默认值 | 说明 |
|------|--------|-------|------|
| `--from` | — | (必填) | 出发地 |
| `--to` | — | (必填) | 目的地 |
| `--date` / `-d` | — | — | 出行日期 YYYY-MM-DD |
| `--return` / `-r` | — | — | 返程日期(启用往返搜索) |
| `--adults` / `-a` | — | 1 | 成人旅客数 |
| `--children` | — | 0 | 儿童旅客数 |
| `--infants` | — | 0 | 婴儿旅客数 |
| `--cabin` / `-C` | — | economy | economy/premium/business/first |
| `--limit` / `-l` | — | 不限制 | 最大结果数(不指定则返回全部) |
| `--sort` / `-s` | — | — | cheapest/fastest/departure/arrival |
| `--stops` | — | 0 | 经停:0=直飞/1/2/any=不限 |
### 通用参数
- `-o table`:表格格式输出(默认为 JSON)
- `-v`:详细模式,显示数据来源和舱位
## 输入示例 / Input Examples
| 用户说 | 解析为 | 说明 |
|--------|--------|------|
| "上海" | PVG + SHA | 城市级:搜索所有上海机场 |
| "PVG" | PVG | 精确到浦东机场 |
| "浦东" | PVG | 别名精确匹配 |
| "纽约" | JFK + EWR + LGA | 城市级:搜索所有纽约机场 |
| "北京" | PEK + PKX + NAY | 城市级:搜索所有北京机场 |
| "Shanghai" | PVG + SHA | 英文城市名同样支持 |
## 安装配置 / Installation
```bash
pip install requests pyyaml curl_cffi flights
# 注意:不要安装 mcp、fast-flights、playwright 等调试模块,会增加安装时间且普通使用不需要
```
**文件位置**:主程序 `flyclaw.py`,配置 `config.yaml`,机场缓存 `cache/airports.json`。
**依赖**:Python 3.11+、`requests`(Apache-2.0)、`pyyaml`(MIT)、`curl_cffi`(MIT)、`flights`(MIT)。
## 安全性 / Security
- **零 API Key 依赖**:程序运行不需要用户提供任何 API Key 或注册任何账号
- 程序不收集、不存储任何用户个人信息
- 所有网络请求仅用于查询公开航班数据
## 免责声明 / Disclaimer
- 本工具基于多源聚合架构,通过开源库及免费公开 API 获取数据
- 仅供学习研究用途,请遵守当地法律法规
- Google Flights 在部分地区可能不可用
- 价格数据来自多个数据源,不同来源的价格可能存在差异(含税/不含税、舱位差异等),仅供参考
---
## 作者 / Author
公益技能,免费开源。 / Community-driven, open-source, free for everyone.
- **Email**: nuaa02@gmail.com
- **小红书 / Xiaohongshu**: @深度连接
- **GitHub**: [AI4MSE](https://github.com/AI4MSE)
**许可证 / License**:[Apache-2.0](LICENSE)