1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "listingType": "residential",
11 "location": "Auckland",
12 "propertyType": "any",
13 "priceMin": 0,
14 "priceMax": 0,
15 "bedroomsMin": 0,
16 "bedroomsMax": 0,
17 "bathroomsMin": 0,
18 "floorAreaMinSqm": 0,
19 "landAreaMinSqm": 0,
20 "keywords": "",
21 "listedSince": "any",
22 "openHomesOnly": False,
23 "includeAdjacentSuburbs": False,
24 "petsAllowed": False,
25 "sort": "newest",
26 "maxResults": 100,
27 "includeDetails": False,
28 "listingUrls": [],
29}
30
31
32run = client.actor("sian.agency/trademe-property-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