1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "propertyType": "byty",
11 "transaction": "prodej",
12 "regions": ["Hlavní město Praha"],
13 "dispositions": [],
14 "minPrice": 0,
15 "maxPrice": 0,
16 "minArea": 0,
17 "maxArea": 0,
18 "buildingTypes": [],
19 "ownership": "any",
20 "maxAgeDays": 0,
21 "sort": "-date",
22 "maxResults": 100,
23 "includeDetails": False,
24 "propertyUrls": [],
25 "searchUrls": [],
26}
27
28
29run = client.actor("sian.agency/sreality-property-scraper").call(run_input=run_input)
30
31
32print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
33for item in client.dataset(run.default_dataset_id).iterate_items():
34 print(item)
35
36