Booking 抓取參數

Web Scraper API Booking 抓取參數

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

唯一標識:

token ,訪問令牌(必填)

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

請求示例:

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

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}}"

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

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

spider_id所屬抓取工具(必填)

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

請求示例:

spider_id=booking_hotellist_by-url

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}}"
urlURL(必填)

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

請求示例:

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

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}}"

如果您需要進一步的幫助,請透過電子郵件聯繫 [email protected]

Last updated

Was this helpful?