1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "location": "Aarhus",
11 "areaLevel": "auto",
12 "locations": [],
13 "propertyTypes": ["villa"],
14 "maxResults": 100,
15 "priceMin": 0,
16 "priceMax": 0,
17 "roomsMin": 0,
18 "roomsMax": 0,
19 "areaMin": 0,
20 "areaMax": 0,
21 "lotAreaMin": 0,
22 "yearBuiltFrom": 0,
23 "energyLabels": [],
24 "monthlyExpenseMax": 0,
25 "onlyOpenHouse": False,
26 "onlyPriceDrop": False,
27 "soldMonthsBack": "12",
28 "saleTypes": [],
29 "sortBy": "newest",
30 "agentAddressType": "all",
31}
32
33
34run = client.actor("sian.agency/boligsiden-property-scraper").call(run_input=run_input)
35
36
37print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
38for item in client.dataset(run.default_dataset_id).iterate_items():
39 print(item)
40
41