travel-cn

旅行信息查询 - 去哪儿/携程/飞猪数据查询(Expedia 中国版)

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "travel-cn" with this command: npx skills add guohongbin-git/travel-cn

旅行信息查询

去哪儿/携程/飞猪数据查询。

功能

  • ✈️ 机票查询
  • 🏨 酒店预订
  • 🚄 火车票
  • 🎫 景点门票
  • 📅 行程规划

平台对比

平台机票酒店火车特点
携程全能
去哪儿比价
飞猪阿里系
12306官方

机票查询

携程 API

# 需要合作伙伴资质
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/")

酒店查询

携程 API

curl "https://api.ctrip.com/hotel/search?city=上海&checkin=2026-02-20"

火车票查询

12306(官方)

# 使用 12306 API 封装
pip install py12306

from py12306 import Py12306
client = Py12306()
trains = client.query("上海", "北京", "2026-02-20")

使用场景

1. 商务出行

  • 机票/酒店比价
  • 行程优化
  • 费用控制

2. 旅行规划

  • 景点推荐
  • 路线规划
  • 预算管理

3. 价格监控

  • 降价提醒
  • 价格趋势
  • 最佳购买时机

快速脚本

# 查询机票
./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. API 限制: 需要合作伙伴资质
  2. 爬虫风险: 可能被封 IP
  3. 价格变化: 实时波动

版本: 1.0.0

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

AIWolfPK - AI狼人杀

四个AI互相猜疑,你坐着看戏。每局30秒,到底谁是狼? Four AIs play Werewolf while you watch. 30s per round. Spot the wolf before they do.

Registry SourceRecently Updated
General

Project Analyzer

Analyze any project directory and produce a detailed report covering what the project does, its tech stack, folder structure, entry points, how to run it, an...

Registry SourceRecently Updated
General

Thought-Retriever

提炼对话回答中的核心洞察为高置信度知识晶体,存储于本体驱动记忆系统的自我进化与复用。

Registry SourceRecently Updated
General

Miaoji Bid Guard Pro

亚马逊广告护城河Pro版,90天ROI预测+多活动协同+季节性出价+关键词攻防矩阵。 从单次调价建议升级为完整的广告战役规划。基础功能可使用 miaoji-bid-guard 免费版。

Registry SourceRecently Updated