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