Use this skill to create Booking hotel information collection tasks through Dataify's builder endpoint.
booking_hotellist_by-url spider when the user wants to collect Booking hotel information from one or more Booking URLs.python; use python3 if that is the available Python command. Require Python 3 or newer. Do not use version-specific commands such as py -3.10.spider_parameters objects for the same spider ID. If the user already supplied multiple Booking URLs, treat that as a multiple-set request.Parameter, Current value, Default value, Required, Description.Label, Value. This tool currently has no dropdown fields.DATAIFY_API_TOKEN from the environment.Missing Dataify API token. Provide a token, or log in/register at Dataify If you already have one, open Dataify and copy the API TOKEN from the top-right area.DATAIFY_API_TOKEN is not already saved locally, ask whether to save it as DATAIFY_API_TOKEN. Save it only after explicit consent and never echo the token back.task_id, taskId, id, status, data.task_id, data.id, or data.status. Then remind the user to view task details in the official dashboard: DataifyUse the preview helper whenever possible:
python scripts/preview_params.py --url "https://www.booking.com/hotel/gb/westlands-of-pitlochry.en-gb.html#tab-main"
For multiple parameter sets, pass the exact JSON array:
python scripts/preview_params.py --parameters-json '[{"url":"https://www.booking.com/hotel/gb/westlands-of-pitlochry.en-gb.html#tab-main"},{"url":"https://www.booking.com/hotel/us/example.en-gb.html"}]'
Use the call helper after confirmation and token handling:
python scripts/booking_hotellist.py --url "https://www.booking.com/hotel/gb/westlands-of-pitlochry.en-gb.html#tab-main"
python scripts/booking_hotellist.py --parameters-json '[{"url":"https://www.booking.com/hotel/gb/westlands-of-pitlochry.en-gb.html#tab-main"},{"url":"https://www.booking.com/hotel/us/example.en-gb.html"}]'
If the token was provided in the conversation instead of the environment, pass it with --token and do not expose it in user-facing output:
python scripts/booking_hotellist.py --token "USER_TOKEN" --url "https://www.booking.com/hotel/gb/westlands-of-pitlochry.en-gb.html#tab-main"
| Mode | Spider ID | Required parameters | Default spider_parameters |
|---|---|---|---|
| --- | --- | --- | --- |
by-url | booking_hotellist_by-url | url | [{"url":"https://www.booking.com/hotel/gb/westlands-of-pitlochry.en-gb.html#tab-main"}] |
Every request also accepts file_name. If omitted, use {{TasksID}}.
Always submit to https://scraperapi.dataify.com/builder?platform=1 with:
| Field | Value |
|---|---|
| --- | --- |
spider_name | booking.com |
spider_id | booking_hotellist_by-url |
spider_parameters | JSON array of one or more parameter objects |
spider_errors | true |
file_name | User value, otherwise {{TasksID}} |
Send parameters as form data. Keep spider_parameters as a JSON string inside the form body.
共 2 个版本