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?