travel-planning
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTravel Planning
旅行规划
Orchestrates 3 CLI tools to help users plan domestic and international trips — covering hotels, flights, attractions, destination guides, and user reviews.
协调3款CLI工具帮助用户规划国内外旅行——涵盖酒店、航班、景点、目的地指南以及用户评价。
Prerequisites
前置条件
-
kimi-webbridge daemon running:bash
~/.kimi-webbridge/bin/kimi-webbridge statusIf not running: invoke theskill.kimi-webbridge -
CLI binaries on:
$PATH-
xiaohongshu-cli — install via Homebrew:bash
brew install xpzouying/agent-cli/xiaohongshu-cli(One-time tap setup:. Covers macOS arm64/amd64 and Linux amd64/arm64.)brew tap xpzouying/agent-cli -
ctrip-cli and booking-cli — build from source:bash
git clone https://github.com/better-world-ai/x-cli cd x-cli/ctrip-cli && go build -o ~/.local/bin/ctrip-cli . && cd .. cd booking-cli && go build -o ~/.local/bin/booking-cli .Ensureis on your~/.local/bin.$PATH
Sanity check:bashctrip-cli --help && booking-cli --help && xiaohongshu-cli --help -
-
运行kimi-webbridge守护进程:bash
~/.kimi-webbridge/bin/kimi-webbridge status如果未运行:调用技能。kimi-webbridge -
CLI二进制文件已添加至:
$PATH-
xiaohongshu-cli — 通过Homebrew安装:bash
brew install xpzouying/agent-cli/xiaohongshu-cli(一次性tap设置:。支持macOS arm64/amd64及Linux amd64/arm64。)brew tap xpzouying/agent-cli -
ctrip-cli 和 booking-cli — 从源码编译:bash
git clone https://github.com/better-world-ai/x-cli cd x-cli/ctrip-cli && go build -o ~/.local/bin/ctrip-cli . && cd .. cd booking-cli && go build -o ~/.local/bin/booking-cli .确保已加入~/.local/bin。$PATH
完整性检查:bashctrip-cli --help && booking-cli --help && xiaohongshu-cli --help -
CLI Capabilities
CLI功能
| Capability | ctrip-cli | booking-cli | xiaohongshu-cli |
|---|---|---|---|
| Hotel search | Domestic + International | International only | - |
| Flight search | Domestic + International | - | - |
| Attractions | Yes (with scores, prices) | - | - |
| Destination guide | Must-do lists, travel notes | - | - |
| User reviews/tips | - | - | Travel notes search |
| Login required | No (member prices need login) | No | Read: No, Write: Yes |
| CAPTCHA risk | Low | Low | Low |
| 功能 | ctrip-cli | booking-cli | xiaohongshu-cli |
|---|---|---|---|
| 酒店搜索 | 国内+国际 | 仅国际 | - |
| 航班搜索 | 国内+国际 | - | - |
| 景点查询 | 支持(含评分、价格) | - | - |
| 目的地指南 | 必体验清单、旅行笔记 | - | - |
| 用户评价/贴士 | - | - | 旅行笔记搜索 |
| 是否需要登录 | 否(会员价需要登录) | 否 | 阅读:否,发布:是 |
| 验证码风险 | 低 | 低 | 低 |
Workflow: Domestic Trip (国内游)
工作流:国内游
Use ctrip + xiaohongshu. Example: planning a trip to Chengdu.
bash
undefined使用ctrip + xiaohongshu。示例:规划成都之行。
bash
undefined1. Get destination overview from Ctrip (must-do sights, restaurants, shops, travel notes)
1. 从携程获取目的地概况(必去景点、餐厅、购物场所、旅行笔记)
ctrip-cli destination --name chengdu104
ctrip-cli destination --name chengdu104
2. Search user travel tips on Xiaohongshu
2. 在小红书搜索用户旅行贴士
xiaohongshu-cli search "成都旅游攻略" --limit 10
xiaohongshu-cli search "成都旅游攻略" --limit 10
3. Search hotels on Ctrip
3. 在携程搜索酒店
ctrip-cli search-hotels --keyword "成都" --checkin 2026/07/01 --checkout 2026/07/05 --limit 10
ctrip-cli search-hotels --keyword "成都" --checkin 2026/07/01 --checkout 2026/07/05 --limit 10
4. Search flights
4. 搜索航班
ctrip-cli search-flights --from SHA --to CTU --date 2026-07-01 --limit 10
ctrip-cli search-flights --from SHA --to CTU --date 2026-07-01 --limit 10
5. Browse attractions
5. 浏览景点
ctrip-cli search-attractions --destination chengdu104 --limit 10
undefinedctrip-cli search-attractions --destination chengdu104 --limit 10
undefinedWorkflow: International Trip (出境游)
工作流:出境游
Use all 3 CLIs. Example: planning a trip to Kyoto.
bash
undefined使用全部3款CLI。示例:规划京都之行。
bash
undefined1. Get destination overview from Ctrip
1. 从携程获取目的地概况
ctrip-cli destination --name kyoto430
ctrip-cli destination --name kyoto430
2. Search user travel tips on Xiaohongshu
2. 在小红书搜索用户旅行贴士
xiaohongshu-cli search "京都旅游攻略" --limit 10
xiaohongshu-cli search "京都旅游攻略" --limit 10
3. Compare hotels: Ctrip vs Booking.com
3. 对比酒店:携程 vs Booking.com
ctrip-cli search-hotels --keyword "京都" --city-id 734 --country-id 78 --checkin 2026/07/01 --checkout 2026/07/05 --limit 10
booking-cli search-hotels --destination "Kyoto" --checkin 2026-07-01 --checkout 2026-07-05 --limit 10
ctrip-cli search-hotels --keyword "京都" --city-id 734 --country-id 78 --checkin 2026/07/01 --checkout 2026/07/05 --limit 10
booking-cli search-hotels --destination "Kyoto" --checkin 2026-07-01 --checkout 2026-07-05 --limit 10
4. Search flights
4. 搜索航班
ctrip-cli search-flights --from SHA --to KIX --date 2026-07-01 --limit 10
ctrip-cli search-flights --from SHA --to KIX --date 2026-07-01 --limit 10
5. Browse attractions
5. 浏览景点
ctrip-cli search-attractions --destination kyoto430 --limit 10
undefinedctrip-cli search-attractions --destination kyoto430 --limit 10
undefinedQuick Command Reference
快速命令参考
ctrip-cli
ctrip-cli
bash
ctrip-cli destination --name SLUG
ctrip-cli search-hotels --keyword "城市" [--city-id N --country-id N] [--checkin YYYY/MM/DD] [--checkout YYYY/MM/DD] [--limit N]
ctrip-cli search-flights --from IATA --to IATA [--date YYYY-MM-DD] [--limit N]
ctrip-cli search-attractions --destination SLUG [--limit N]bash
ctrip-cli destination --name SLUG
ctrip-cli search-hotels --keyword "城市" [--city-id N --country-id N] [--checkin YYYY/MM/DD] [--checkout YYYY/MM/DD] [--limit N]
ctrip-cli search-flights --from IATA --to IATA [--date YYYY-MM-DD] [--limit N]
ctrip-cli search-attractions --destination SLUG [--limit N]booking-cli
booking-cli
bash
booking-cli search-hotels --destination "City" [--checkin YYYY-MM-DD] [--checkout YYYY-MM-DD] [--adults N] [--rooms N] [--limit N]bash
booking-cli search-hotels --destination "City" [--checkin YYYY-MM-DD] [--checkout YYYY-MM-DD] [--adults N] [--rooms N] [--limit N]xiaohongshu-cli
xiaohongshu-cli
bash
xiaohongshu-cli search "关键词" [--limit N]
xiaohongshu-cli view <note_id> <xsec_token>
xiaohongshu-cli user <user_id>
xiaohongshu-cli feeds [--limit N]
xiaohongshu-cli login-status
xiaohongshu-cli screenshot <note_id> <xsec_token> [-o path.png]bash
xiaohongshu-cli search "关键词" [--limit N]
xiaohongshu-cli view <note_id> <xsec_token>
xiaohongshu-cli user <user_id>
xiaohongshu-cli feeds [--limit N]
xiaohongshu-cli login-status
xiaohongshu-cli screenshot <note_id> <xsec_token> [-o path.png]Destination ID Cheat Sheet
目的地ID速查表
| Destination | ctrip slug | booking name |
|---|---|---|
| 上海 | shanghai2 | Shanghai |
| 北京 | beijing1 | Beijing |
| 杭州 | hangzhou14 | Hangzhou |
| 成都 | chengdu104 | Chengdu |
| 西安 | xian7 | Xi'an |
| 三亚 | sanya61 | Sanya |
| 厦门 | xiamen21 | Xiamen |
| 广州 | guangzhou152 | Guangzhou |
| 重庆 | chongqing158 | Chongqing |
| 东京 | tokyo294 | Tokyo |
| 京都 | kyoto430 | Kyoto |
| 大阪 | osaka293 | Osaka |
| 首尔 | seoul234 | Seoul |
| 曼谷 | bangkok191 | Bangkok |
| 新加坡 | singapore53 | Singapore |
| 巴黎 | paris308 | Paris |
| 伦敦 | london309 | London |
| 目的地 | ctrip 标识 | booking 名称 |
|---|---|---|
| 上海 | shanghai2 | Shanghai |
| 北京 | beijing1 | Beijing |
| 杭州 | hangzhou14 | Hangzhou |
| 成都 | chengdu104 | Chengdu |
| 西安 | xian7 | Xi'an |
| 三亚 | sanya61 | Sanya |
| 厦门 | xiamen21 | Xiamen |
| 广州 | guangzhou152 | Guangzhou |
| 重庆 | chongqing158 | Chongqing |
| 东京 | tokyo294 | Tokyo |
| 京都 | kyoto430 | Kyoto |
| 大阪 | osaka293 | Osaka |
| 首尔 | seoul234 | Seoul |
| 曼谷 | bangkok191 | Bangkok |
| 新加坡 | singapore53 | Singapore |
| 巴黎 | paris308 | Paris |
| 伦敦 | london309 | London |
Flight City Codes (IATA)
航班城市代码(IATA)
上海: SHA, 北京: BJS, 广州: CAN, 深圳: SZX, 成都: CTU, 杭州: HGH, 西安: SIA, 三亚: SYX, 重庆: CKG, 南京: NKG, 东京: TYO, 大阪: KIX, 首尔: SEL, 曼谷: BKK, 新加坡: SIN
上海: SHA, 北京: BJS, 广州: CAN, 深圳: SZX, 成都: CTU, 杭州: HGH, 西安: SIA, 三亚: SYX, 重庆: CKG, 南京: NKG, 东京: TYO, 大阪: KIX, 首尔: SEL, 曼谷: BKK, 新加坡: SIN
Login & CAPTCHA Notes
登录与验证码说明
| Platform | Login needed | Without login | CAPTCHA risk |
|---|---|---|---|
| Ctrip | Recommended | All features work, but prices are significantly higher without login (50%+ markup observed on the same hotel). Log in in Chrome for accurate member prices | Low — never triggered during testing |
| Booking.com | Recommended | Search works, but displayed prices are significantly higher without login (50%+ markup observed on the same hotel). May also show "Verify email" popup — complete in Chrome and retry | Low |
| Xiaohongshu | Read: No, Write: Yes | search, view, feeds, user all work. like/comment/post require login | Low |
| 平台 | 是否需要登录 | 未登录状态 | 验证码风险 |
|---|---|---|---|
| 携程 | 推荐登录 | 所有功能可用,但未登录时价格明显偏高(同一酒店观察到50%以上溢价)。在Chrome中登录以获取准确会员价 | 低——测试期间从未触发 |
| Booking.com | 推荐登录 | 搜索功能可用,但未登录时显示价格明显偏高(同一酒店观察到50%以上溢价)。可能会弹出「验证邮箱」窗口——在Chrome中完成验证后重试 | 低 |
| 小红书 | 阅读:否,发布:是 | 搜索、查看、信息流、用户主页功能均可用。点赞/评论/发布需要登录 | 低 |
Tips
小贴士
- Start with destination overview: Run first to understand the destination, then drill into hotels/flights/attractions.
ctrip-cli destination - International hotel comparison: Always run both and
ctrip-cli search-hotelsfor international destinations — prices and availability differ significantly.booking-cli search-hotels - Ctrip international hotels: Use first to get the
ctrip-cli destination, extracthotel_urlandcity-idfrom it, then pass tocountry-id. Keyword-only search may return wrong city for international destinations.search-hotels - Xiaohongshu for real tips: Search Xiaohongshu for first-person travel experiences, restaurant recommendations, and hidden gems that structured platforms miss.
- Date formats differ: Ctrip hotels use , Ctrip flights use
YYYY/MM/DD, Booking usesYYYY-MM-DD.YYYY-MM-DD - Xiaohongshu search retry: First search call may fail if no browser tab exists yet — simply retry once.
- Output format: All 3 CLIs return on success and
{"ok": true, "data": ...}on failure.{"ok": false, "error": {...}}
- 从目的地概况开始:先运行了解目的地,再深入查询酒店/航班/景点。
ctrip-cli destination - 国际酒店对比:规划国际旅行时,务必同时运行和
ctrip-cli search-hotels——价格和可用情况差异显著。booking-cli search-hotels - 携程国际酒店查询:先使用获取
ctrip-cli destination,从中提取hotel_url和city-id,再传入country-id。仅用关键词搜索国际目的地可能返回错误城市。search-hotels - 小红书获取真实贴士:在小红书搜索第一人称旅行体验、餐厅推荐以及结构化平台遗漏的小众景点。
- 日期格式差异:携程酒店使用,携程航班使用
YYYY/MM/DD,Booking使用YYYY-MM-DD。YYYY-MM-DD - 小红书搜索重试:如果尚未打开浏览器标签页,首次搜索可能失败——只需重试一次即可。
- 输出格式:三款CLI成功时均返回,失败时返回
{"ok": true, "data": ...}。{"ok": false, "error": {...}}