> For the complete documentation index, see [llms.txt](https://doc.thordata.com/doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.thordata.com/doc/zh-hk/web-scraper-api/zhua-qu-can-shu-shuo-ming/booking-zhua-qu-can-shu.md).

# Booking 抓取參數

**Web Scraper API Booking 抓取參數**

使用 Thordata 的 Web Scraper API 配置 Booking 抓取參數，包括抓取工具抓取工具參數、 详情 URL 參數。

唯一標識：

<details>

<summary><code>token</code> <strong>，訪問令牌（必填）</strong></summary>

此參數用作 API 訪問令牌，以確保抓取請求的合法性。

**請求示例：**

`Authorization: Bearer ********************`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer ********************" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=booking.com" ^
  -d "spider_id=booking_hotellist_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.booking.com/hotel/gb/westlands-of-pitlochry.en-gb.html#tab-main\"},{\"url\": \"https://www.booking.com/hotel/fr/du-midi-paris.en-gb.html\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

**一、產品 - 抓取 Booking 酒店信息：**

1. Booking - 通過 URL 抓取酒店信息

<details>

<summary><code>spider_id</code> ，<strong>所屬抓取工具（必填）</strong></summary>

它定義了要使用的抓取工具。

**請求示例：**

`spider_id=booking_hotellist_by-url`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=booking.com" ^
  -d "spider_id=booking_hotellist_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.booking.com/hotel/gb/westlands-of-pitlochry.en-gb.html#tab-main\"},{\"url\": \"https://www.booking.com/hotel/fr/du-midi-paris.en-gb.html\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

<details>

<summary><code>url</code> ，<strong>URL（必填）</strong></summary>

該參數用於指定抓取 Booking 酒店信息的鏈接。

**請求示例：**

`"url": "https://www.booking.com/hotel/gb/westlands-of-pitlochry.en-gb.html#tab-main"`

```sh
curl -X POST "https://scraperapi.thordata.com/builder" ^
  -H "Authorization: Bearer Token-ID" ^
  -H "Content-Type: application/x-www-form-urlencoded" ^
  -d "spider_name=booking.com" ^
  -d "spider_id=booking_hotellist_by-url" ^
  -d "spider_parameters=[{\"url\": \"https://www.booking.com/hotel/gb/westlands-of-pitlochry.en-gb.html#tab-main\"},{\"url\": \"https://www.booking.com/hotel/fr/du-midi-paris.en-gb.html\"}]" ^
  -d "spider_errors=true" ^
  -d "file_name={{TasksID}}"
```

</details>

如果您需要進一步的幫助，請透過電子郵件聯繫 **<support@thordata.com>**。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.thordata.com/doc/zh-hk/web-scraper-api/zhua-qu-can-shu-shuo-ming/booking-zhua-qu-can-shu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
