1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "location": "roma-roma",
11 "operation": "sale",
12 "propertyType": "homes",
13 "country": "it",
14 "propertySubtype": "any",
15 "rooms": "any",
16 "bathrooms": "any",
17 "condition": "any",
18 "hasLift": False,
19 "hasTerrace": False,
20 "hasPool": False,
21 "hasGarden": False,
22 "hasGarage": False,
23 "hasStorageRoom": False,
24 "hasAirConditioning": False,
25 "hasBalcony": False,
26 "isNewDevelopment": False,
27 "isBankOwned": False,
28 "isAuction": False,
29 "isLuxury": False,
30 "hasSeaViews": False,
31 "isAccessible": False,
32 "sortBy": "relevance",
33 "onlyPriceDrops": False,
34 "onlyPrivateOwners": False,
35 "fetchDetails": False,
36 "maxDetails": 3,
37 "maxItems": 3,
38 "partitionLargeSearches": False,
39}
40
41
42run = client.actor("vexaloom-labs/idealista-search-listings-price-and-feature").call(run_input=run_input)
43
44
45print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
46for item in client.dataset(run.default_dataset_id).iterate_items():
47 print(item)
48
49