1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "search_urls": [
10 "Croissant",
11 "https://www.yelp.com/search?find_desc=restaurants&find_loc=New+York%2C+NY",
12 ],
13 "location": "Paris",
14 "biz_urls": [
15 "https://www.yelp.com/biz/bor%C3%A9al-coffee-shop-z%C3%BCrich",
16 "blue-bottle-coffee-nyc",
17 ],
18 "biz_ids": ["7VuF3aaSF1xZaWrkFCBmcg"],
19}
20
21
22run = client.actor("web_wanderer/yelp-scraper").call(run_input=run_input)
23
24
25print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
26for item in client.dataset(run["defaultDatasetId"]).iterate_items():
27 print(item)
28
29