1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "country": "panama-es",
11 "region": "",
12 "dealType": "sale",
13 "propertyType": "houses",
14 "searchUrls": [],
15 "listingUrls": [],
16 "listingIds": [],
17 "maxItems": 100,
18 "minPrice": 0,
19 "maxPrice": 0,
20 "currency": "any",
21 "minBedrooms": 0,
22 "minBathrooms": 0,
23 "minAreaSqm": 0,
24 "onlyWithCoordinates": False,
25 "onlyActive": True,
26}
27
28
29run = client.actor("sian.agency/encuentra24-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