1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "locations": ["bucuresti"],
11 "dealType": "vanzare",
12 "propertyTypes": [],
13 "maxResults": 100,
14 "includeDetails": False,
15 "minPrice": 0,
16 "maxPrice": 0,
17 "minArea": 0,
18 "maxArea": 0,
19 "onlyPriceReduced": False,
20 "onlyPrivateSellers": False,
21 "searchUrls": [],
22 "listingUrls": [],
23}
24
25
26run = client.actor("sian.agency/imobiliare-property-scraper").call(run_input=run_input)
27
28
29print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
30for item in client.dataset(run.default_dataset_id).iterate_items():
31 print(item)
32
33