1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "transaction": "buy",
11 "propertyType": "apartment",
12 "location": "luxembourg",
13 "bedrooms": "",
14 "maxResults": 100,
15 "minPrice": 0,
16 "maxPrice": 0,
17 "minSurface": 0,
18 "maxSurface": 0,
19 "minBedrooms": 0,
20 "maxBedrooms": 0,
21 "minRooms": 0,
22 "maxRooms": 0,
23 "sort": "",
24 "includeDetails": False,
25 "searchUrls": [],
26 "listingUrls": [],
27}
28
29
30run = client.actor("sian.agency/athome-lu-property-scraper").call(run_input=run_input)
31
32
33print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
34for item in client.dataset(run.default_dataset_id).iterate_items():
35 print(item)
36
37