1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "transaction": "comprar",
11 "propertyType": "apartamento",
12 "locations": ["lisboa"],
13 "searchUrls": [],
14 "listingUrls": [],
15 "agencyUrls": [],
16 "fullDetails": False,
17 "maxResults": 100,
18 "priceMin": 0,
19 "priceMax": 0,
20 "areaMin": 0,
21 "areaMax": 0,
22 "typology": [],
23 "market": "any",
24 "ownerType": "any",
25 "buildYearMin": 0,
26 "listedWithinDays": "any",
27 "sortBy": "default",
28}
29
30
31run = client.actor("sian.agency/imovirtual-property-scraper").call(run_input=run_input)
32
33
34print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
35for item in client.dataset(run.default_dataset_id).iterate_items():
36 print(item)
37
38