1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchType": "auto",
10 "region": "montreal",
11 "market": "ca",
12 "maxResults": 1,
13 "startPage": 1,
14 "pageSize": 20,
15 "startOffset": 0,
16 "maxRequests": 3000,
17 "includeReviews": False,
18 "includeStats": False,
19 "maxReviews": 20,
20 "maxGallery": 100,
21 "enrichDetails": True,
22 "allRegions": False,
23 "includeInactive": False,
24 "featuredOnly": False,
25 "seasonalOnly": False,
26 "filterProsByRegion": False,
27 "includeGallery": False,
28 "maxPages": 1,
29}
30
31
32run = client.actor("lentic_clockss/jiffy-ondemand-scraper").call(run_input=run_input)
33
34
35print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
36for item in client.dataset(run.default_dataset_id).iterate_items():
37 print(item)
38
39