1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "section": "homes",
11 "locations": ["Oslo"],
12 "searchQuery": "",
13 "sort": "PUBLISHED_DESC",
14 "maxResults": 50,
15 "publishedToday": False,
16 "priceFrom": 0,
17 "priceTo": 0,
18 "areaFrom": 0,
19 "areaTo": 0,
20 "minBedrooms": 0,
21 "propertyType": "",
22 "ownershipType": "",
23 "energyLabel": "",
24 "sellerType": "",
25 "constructionYearFrom": 0,
26 "constructionYearTo": 0,
27 "includeDetails": False,
28 "listingUrls": [],
29 "searchUrls": [],
30}
31
32
33run = client.actor("sian.agency/finn-no-property-scraper").call(run_input=run_input)
34
35
36print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
37for item in client.dataset(run.default_dataset_id).iterate_items():
38 print(item)
39
40