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