1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "market": "sweden",
11 "location": "Stockholm",
12 "homeTypes": [],
13 "maxResults": 100,
14 "rentMin": 0,
15 "rentMax": 0,
16 "roomsMin": 0,
17 "roomsMax": 0,
18 "areaMin": 0,
19 "areaMax": 0,
20 "moveInFrom": "",
21 "minRentalMonths": 0,
22 "furnished": "any",
23 "petsAllowed": False,
24 "wheelchairAccessible": False,
25 "sharedHomes": "any",
26 "contractTypes": [],
27 "householdSize": 0,
28 "sort": "newest",
29 "includeDetails": False,
30 "listingUrls": [],
31 "searchUrls": [],
32}
33
34
35run = client.actor("sian.agency/qasa-property-scraper").call(run_input=run_input)
36
37
38print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
39for item in client.dataset(run.default_dataset_id).iterate_items():
40 print(item)
41
42