1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "site": "GR",
11 "locations": [
12 "Athens",
13 "Thessaloniki",
14 ],
15 "listingType": "sale",
16 "category": "residential",
17 "propertyTypes": [],
18 "maxResults": 100,
19 "searchUrls": [],
20 "listingUrls": [],
21 "minPrice": 0,
22 "maxPrice": 0,
23 "minAreaSqm": 0,
24 "maxAreaSqm": 0,
25 "minRooms": 0,
26 "maxRooms": 0,
27 "minFloor": "",
28 "maxFloor": "",
29 "minYearBuilt": 0,
30 "maxYearBuilt": 0,
31 "energyClassAtLeast": "",
32 "listedWithin": "",
33 "updatedWithin": "",
34 "priceReducedOnly": False,
35 "features": [],
36 "sortBy": "best_match",
37 "includeDetails": False,
38 "includeAgentContact": False,
39 "language": "el",
40}
41
42
43run = client.actor("sian.agency/spitogatos-property-scraper").call(run_input=run_input)
44
45
46print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
47for item in client.dataset(run.default_dataset_id).iterate_items():
48 print(item)
49
50