1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "profile": {
9 "id": "praha-2kk-30k",
10 "version": 1,
11 "filters": {
12 "offer_type": "rent",
13 "property_type": "flat",
14 "locations": [{
15 "city": "Praha",
16 "citypart": "Vinohrady",
17 }],
18 "dispositions": [
19 "2+kk",
20 "2+1",
21 ],
22 "max_rent": 30000,
23 "min_area_m2": 45,
24 "sources": [
25 "sreality",
26 "bezrealitky",
27 "idnes",
28 ],
29 "max_listings": 5,
30 },
31 "household": { "occupants": 1 },
32 "requirements": {
33 "max_total_monthly": 32000,
34 "max_upfront": None,
35 "elevator": None,
36 "lease_types": ["najem"],
37 "move_in_by": None,
38 "pets_allowed": None,
39 },
40 } }
41
42
43run = client.actor("vladb/prague-flat-rentals").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