Coding

获取一嗨租车的租车价格

Try it

Use when the user needs a China domestic rental-car reference price, especially for same-day or holiday travel where train-station or airport store choice ma...

What it does

Use when the user needs a China domestic rental-car reference price, especially for same-day or holiday travel where train-station or airport store choice ma...

The skill document

China Rental Price

Overview

This skill is for China domestic self-drive rental price checks in travel-planning conversations. The currently reliable path is OneHai via the user's logged-in Google Chrome session on macOS.

When To Use

  • The user asks for a China domestic rental-car price, same-day quote, or holiday quote.
  • The user wants a station or airport pickup store, not an arbitrary citywide sweep.
  • The user shows a "0 cars" page and needs to know whether it is truly sold out or blocked by a peak-period minimum-rental rule.

Preconditions

  • Use absolute dates and times.
  • Google Chrome must already be logged into 一嗨租车.
  • Chrome must have 查看 > 开发者 > 允许 Apple 事件中的 JavaScript enabled.
  • macOS needs osascript and tesseract.

Workflow

  1. Prefer scene-based store targeting:
    • High-speed rail or train arrival: train-station
    • Flight arrival: airport
    • Only use citywide selection when the user did not specify a transit scene.
  2. If the user knows the exact store, pass --pickup-location and --dropoff-location.
  3. Run scripts/query-onehai-live-chrome.mjs.
  4. Interpret the result before answering:
    • bookingRestriction means a policy limit such as a holiday minimum-rental rule. Do not describe it as ordinary sellout.
    • priceMin and vehicleSamples are reference prices captured at query time, not a guaranteed final checkout price.
    • availableCars = 0 without bookingRestriction is the closer match to true no inventory at that store and time.

Commands

City plus transit scene:

node /Users/shenmingjie/.codex/skills/china-rental-price/scripts/query-onehai-live-chrome.mjs \
  --pickup-city 宣城 \
  --pickup-scene train-station \
  --pickup-datetime 2026-05-01T15:30 \
  --dropoff-datetime 2026-05-04T10:30

Exact store:

node /Users/shenmingjie/.codex/skills/china-rental-price/scripts/query-onehai-live-chrome.mjs \
  --pickup-city 宣城 \
  --pickup-location "泾县高铁站自助点" \
  --dropoff-city 宣城 \
  --dropoff-location "泾县高铁站自助点" \
  --pickup-datetime 2026-05-01T10:00 \
  --dropoff-datetime 2026-05-04T10:00

Output Shape

The script prints JSON with fields such as:

  • platform
  • status
  • capturedAt
  • bookingUrl
  • selectedStore
  • priceMin
  • priceTotalIfAvailable
  • availableCars
  • vehicleSamples
  • bookingRestriction
  • warnings

Response Guidance

  • Report the selected store explicitly so the user knows whether the quote came from a train-station store, airport store, or another branch.
  • Keep the wording as 参考实时价.
  • If the query is part of a broader itinerary, combine the rental result with the user's actual arrival mode instead of searching every store in the city.
  • Be transparent that the reliable automated path in this skill is currently OneHai.

Related skills

Query China domestic flights with schedules, airline details, airport resolution, and Juhe reference prices. Use when a user asks for domestic China flight o...

25 installs

Plan trips to China with flight, hotel, train, and attraction search. Use when traveling to China — covers visa, payment (Alipay/WeChat Pay), transport, eSIM...

1 installs

Query China domestic transport options through one skill. Use when a user wants domestic flight or high-speed rail results, departure and arrival times, stat...

33 installs

中国入境旅游完整助手。当用户需要以下信息时触发:(1)入境中国签证、240小时过境免签、落地签、79国免签政策 (2)中国支付方式(支付宝/微信支付绑定境外银行卡、外币兑换) (3)中国交通(高铁、飞机、国内航班预订) (4)中国城市旅游攻略(北京、上海、广州、成都、杭州等20+城市) (5)中国海关入境申报、文...

20 installs

Generate English hospital recommendation reports for medical travel to China, hospital matching, and redo orders. Use when needs to turn user intake data int...

18 installs1 stars

Get day-by-day trip plans backed by research on current prices, visas, weather, and local events.

59 installs1 stars