1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "location": "df",
11 "market": "venta",
12 "propertyType": "all",
13 "feature": "any",
14 "maxResults": 100,
15 "minPrice": 0,
16 "maxPrice": 0,
17 "currency": "any",
18 "minAreaM2": 0,
19 "onlyWithCoordinates": False,
20 "listingUrls": [],
21 "searchUrls": [],
22}
23
24
25run = client.actor("sian.agency/propiedades-property-scraper").call(run_input=run_input)
26
27
28print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
29for item in client.dataset(run.default_dataset_id).iterate_items():
30 print(item)
31
32