1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "propertyCategory": "apartments",
11 "dealType": "sale",
12 "region": "any",
13 "cities": [],
14 "maxResults": 200,
15 "keyword": "",
16 "currency": "USD",
17 "minPrice": 0,
18 "maxPrice": 0,
19 "rooms": [],
20 "minArea": 0,
21 "maxArea": 0,
22 "minPlotSotka": 0,
23 "maxPlotSotka": 0,
24 "minYearBuilt": 0,
25 "maxYearBuilt": 0,
26 "condition": "any",
27 "sellerType": "any",
28 "onlyWithPhoto": False,
29 "newBuildingOnly": False,
30 "minskDistricts": [],
31 "metroStations": [],
32 "sort": "newest",
33 "includeDetails": False,
34 "searchUrls": [],
35 "listingUrls": [],
36}
37
38
39run = client.actor("sian.agency/kufar-property-scraper").call(run_input=run_input)
40
41
42print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
43for item in client.dataset(run.default_dataset_id).iterate_items():
44 print(item)
45
46