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