
Ctrip Flight Search
This automates flight searches on Ctrip (携程) using browser automation. It handles both domestic and international routes, supports roundtrip queries, and works with Chinese city names or airport codes. The implementation uses keyboard shortcuts (Enter key) instead of clicking search buttons to avoid overlay issues, which proved more reliable across different city pairs during testing. Already verified on routes like Guangzhou to Chengdu and Shanghai to Tokyo. Fair warning: you'll need to handle any CAPTCHAs manually, and the skill assumes stable page load times. If you're scraping flight data from Ctrip or building travel tools for Chinese markets, this handles the tedious form-filling part.
- skills.sh installs
- 241
- GitHub stars
- 121
- last updated
- Aug 21, 2026
Install
$ npx -y skills add stvlynn/dingtalk-wukong-skills --skill ctrip-flight-search --agent claude-codeInstalls into .claude/skills of the current project.
Files
携程查航班技能
功能概述
本技能提供完整的携程航班查询自动化能力,基于实际验证的浏览器操作流程,支持以下功能:
- 单程航班查询: 查询指定日期从出发地到目的地的航班
- 往返航班查询: 查询指定往返日期的航班(已验证支持)
- 多城市支持: 支持中文城市名称和机场代码输入
- 多城市通用性: 已验证支持任意城市组合(如广州→成都、北京→上海等)
- 国际航班查询: 支持国际航线查询(如上海→东京、北京→首尔等)
- 日期范围: 支持YYYY-MM-DD格式的日期输入
- 错误处理: 具备元素不可见、页面变化等异常情况的处理机制
使用场景
当用户需要:
- 查询特定日期的航班信息
- 获取航班价格和时刻表
- 自动化航班查询流程
- 从携程网提取航班数据
- 验证不同城市间的航班查询可行性
核心操作SOP流程
基础查询流程
- 导航到携程首页:
navigate→https://www.ctrip.com - 进入航班查询页面:
backbone→ 定位机票按钮 →click - 输入出发地:
type→ 城市名称 →search→ 选择具体机场 →click - 输入目的地:
search→ 目标城市 →click - 设置日期: 确认日期输入框已正确设置
- 执行查询:
press→Enter(优先方案)或点击搜索按钮
关键操作要点
出发地/目的地输入
- 先使用
type在输入框中输入城市名称(如"北京"、"上海"、"广州"、"成都"等) - 系统会自动显示下拉选择列表
- 使用
search查找具体的机场选项(如"北京(大兴国际机场)(PKX)"、"成都(双流国际机场)(CTU)"等) - 使用
click选择目标机场 - 多城市通用性: 技能已验证支持任意中文城市名称组合,包括一二三线城市
查询执行策略
- 首选方案: 使用
press+Enter提交表单(避免覆盖层阻挡问题,已在多城市场景下验证有效性) - 备选方案: 如果回车键无效,使用
search查找搜索按钮并click
Sponsors
Details
- Repository
- github.com/stvlynn/dingtalk-wukong-skills
- First seen
- Jun 3, 2026