Yelp 抓取參數
Web Scraper API Yelp 抓取參數
使用 Thordata 的 Web Scraper API 配置 Yelp 抓取參數,包括包括搜尋URL、商家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=yelp.com" ^
-d "spider_id=yelp_business-overview_by-search-filters" ^
-d "spider_parameters=[{\"category\": \"cafe\",\"location\": \"new york\",\"business_page_turning\": \"1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"一、產品-抓取商家資訊:
1. Yelp - 透過搜尋過濾器抓取商家訊息
spider_id ,所屬抓取工具 (必填)
它定義了要使用的抓取工具。
請求範例:
spider_id=yelp_business-overview_by-search-filters
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=yelp.com" ^
-d "spider_id=yelp_business-overview_by-search-filters" ^
-d "spider_parameters=[{\"category\": \"cafe\",\"location\": \"new york\",\"business_page_turning\": \"1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
category ,類別(必填)
此參數指定要抓取的類別。
請求範例:
"category": "cafe"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=yelp.com" ^
-d "spider_id=yelp_business-overview_by-search-filters" ^
-d "spider_parameters=[{\"category\": \"cafe\",\"location\": \"new york\",\"business_page_turning\": \"1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
location ,地點(必填)
此參數指定要抓取的位置。
請求範例:
"location": "new york"
curl -X POST "https://scraperapi.thordata.com/builder" ^
-H "Authorization: Bearer Token-ID" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "spider_name=yelp.com" ^
-d "spider_id=yelp_business-overview_by-search-filters" ^
-d "spider_parameters=[{\"category\": \"cafe\",\"location\": \"new york\",\"business_page_turning\": \"1\"}]" ^
-d "spider_errors=true" ^
-d "file_name={{TasksID}}"
2. Yelp - 透過搜尋網址抓取商業訊息
search_url ,搜尋網址(必填)
此参数指定要抓取的搜索网址。
請求範例:
"search_url": "https://www.yelp.com/search?find_desc=Cafes%26find_loc=Stowe%2C%2BVT"
3. Yelp - 透過商家URL抓取商業訊息
business_url ,商家URL(必填)
此參數指定要搜尋的商家網址。
請求範例:
"business_url": "https://www.yelp.com/biz/the-round-hearth-caf%C3%A9-and-marketplace-stowe?osq=Sandwiches"
產品 - 抓取商家評論資訊:
1. Yelp - 透過搜尋篩選器抓取商家評論訊息
2. Yelp - 透過搜尋網址抓取商家評論訊息
search_url,搜尋URL(必填)
此參數指定要抓取的搜尋 URL。
請求範例:
"search_url": "https://www.yelp.com/search?find_desc=Cafes%26find_loc=Stowe%2C%2BVT"
3. Yelp - 透過商家網址抓取商家評論訊息
business_url,商家URL(必填)
此參數指定要抓取的商家URL。
請求範例:
"business_url": "https://www.yelp.com/biz/the-round-hearth-caf%C3%A9-and-marketplace-stowe?osq=Sandwiches"
如果您需要進一步的協助,請透過電子郵件聯繫 [email protected]。
Last updated
Was this helpful?