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 酒店信息:
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}}"
url
,URL(必填)
该参数用于指定抓取 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?