1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "dealType": "forsale",
11 "region": "3",
12 "city": "תל אביב יפו",
13 "searchUrls": [],
14 "maxResults": 100,
15 "propertyType": "",
16 "listedBy": "any",
17 "minPrice": 0,
18 "maxPrice": 0,
19 "minRooms": 0,
20 "maxRooms": 0,
21 "minSquareMeters": 0,
22 "maxSquareMeters": 0,
23 "minFloor": 0,
24 "maxFloor": 0,
25 "hasParking": False,
26 "hasElevator": False,
27 "hasBalcony": False,
28 "hasSafeRoom": False,
29 "isRenovated": False,
30 "isFurnished": False,
31 "onlyWithPhotos": False,
32}
33
34
35run = client.actor("sian.agency/yad2-property-scraper").call(run_input=run_input)
36
37
38print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
39for item in client.dataset(run.default_dataset_id).iterate_items():
40 print(item)
41
42