Install
openclaw skills install travel-cn旅行信息查询 - 去哪儿/携程/飞猪数据查询(Expedia 中国版)
openclaw skills install travel-cn去哪儿/携程/飞猪数据查询。
| 平台 | 机票 | 酒店 | 火车 | 特点 |
|---|---|---|---|---|
| 携程 | ✅ | ✅ | ✅ | 全能 |
| 去哪儿 | ✅ | ✅ | ✅ | 比价 |
| 飞猪 | ✅ | ✅ | ❌ | 阿里系 |
| 12306 | ❌ | ❌ | ✅ | 官方 |
# 需要合作伙伴资质
curl "https://api.ctrip.com/flight/search?from=SHA&to=PEK&date=2026-02-20"
# 使用 selenium
pip install selenium
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://flight.qunar.com/")
curl "https://api.ctrip.com/hotel/search?city=上海&checkin=2026-02-20"
# 使用 12306 API 封装
pip install py12306
from py12306 import Py12306
client = Py12306()
trains = client.query("上海", "北京", "2026-02-20")
# 查询机票
./scripts/flight-search.sh --from 上海 --to 北京 --date 2026-02-20
# 查询酒店
./scripts/hotel-search.sh --city 上海 --checkin 2026-02-20
# 查询火车票
./scripts/train-search.sh --from 上海 --to 北京 --date 2026-02-20
版本: 1.0.0