1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "dealType": "sale",
11 "propertyCategory": "apartments",
12 "city": "baki",
13 "maxResults": 50,
14 "rooms": [],
15 "minPrice": 0,
16 "maxPrice": 0,
17 "minArea": 0,
18 "maxArea": 0,
19 "hasRepair": False,
20 "hasBillOfSale": False,
21 "hasMortgage": False,
22 "sort": "newest",
23 "includeDetails": False,
24 "searchUrls": [],
25 "listingUrls": [],
26}
27
28
29run = client.actor("sian.agency/bina-property-scraper").call(run_input=run_input)
30
31
32print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36