1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "transaction": "rent",
11 "propertyKind": "residence",
12 "listedBy": "any",
13 "locations": ["Γλυφάδα"],
14 "propertyType": "",
15 "maxResults": 50,
16 "includeDetails": False,
17 "minPrice": 0,
18 "maxPrice": 0,
19 "minSizeSqm": 0,
20 "maxSizeSqm": 0,
21 "minBedrooms": 0,
22 "maxBedrooms": 0,
23 "minBathrooms": 0,
24 "minFloor": -1,
25 "maxFloor": -1,
26 "minConstructionYear": 0,
27 "maxConstructionYear": 0,
28 "minEnergyClass": "",
29 "maxEnergyClass": "",
30 "condition": "",
31 "onlyFurnished": False,
32 "onlyPetsAllowed": False,
33 "onlyWithParking": False,
34 "onlyWithElevator": False,
35 "onlyWithAirConditioning": False,
36 "onlyWithGarden": False,
37 "onlyWithPool": False,
38 "onlyWithView": False,
39 "onlyWithPhotos": False,
40 "onlyShortTermAvailable": False,
41 "keywords": "",
42 "addedInLastDays": 0,
43 "sortBy": "created_desc",
44 "outputLanguage": "el",
45 "listingUrls": [],
46 "searchUrls": [],
47}
48
49
50run = client.actor("sian.agency/xe-property-scraper").call(run_input=run_input)
51
52
53print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
54for item in client.dataset(run.default_dataset_id).iterate_items():
55 print(item)
56
57