1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "location": "Bogotá",
11 "locations": [
12 "Medellín",
13 "Cali",
14 ],
15 "agencyUrls": [],
16 "transactionType": "sale",
17 "propertyType": "all",
18 "minPrice": 0,
19 "maxPrice": 0,
20 "minArea": 0,
21 "maxArea": 0,
22 "stratum": "any",
23 "bedrooms": "any",
24 "antiquity": "any",
25 "has3dTour": False,
26 "sortBy": "popularity",
27 "maxResults": 105,
28}
29
30
31run = client.actor("sian.agency/fincaraiz-property-scraper").call(run_input=run_input)
32
33
34print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
35for item in client.dataset(run.default_dataset_id).iterate_items():
36 print(item)
37
38