1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchType": "auto",
10 "findDesc": "pizza",
11 "findLoc": "New York, NY",
12 "maxResults": 3,
13 "market": "us",
14 "sortBy": "recommended",
15 "start": 0,
16 "enrichDetails": True,
17 "includeReviews": False,
18 "reviewLimit": 20,
19 "reviewOffset": 0,
20 "includePhotos": False,
21 "photoLimit": 10,
22 "includePresentation": False,
23 "includeMobileSubsurfaces": False,
24 "mobileSubsurfaces": [],
25 "communityQuestionsFirst": 5,
26 "registerDevice": False,
27 "phoneCountry": "US",
28 "provider": "app_api",
29 "workerBaseUrl": "",
30}
31
32
33run = client.actor("lentic_clockss/yelp-scraper").call(run_input=run_input)
34
35
36print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40