1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "search",
10 "site": "IE",
11 "locations": [
12 "dublin-city",
13 "cork-city",
14 ],
15 "section": "residential-for-sale",
16 "maxResults": 100,
17 "includeDetails": False,
18 "listingUrls": [],
19 "searchUrls": [],
20 "minPrice": 0,
21 "maxPrice": 0,
22 "minBeds": 0,
23 "maxBeds": 0,
24 "minBaths": 0,
25 "propertyType": "",
26 "minBer": "",
27 "maxBer": "",
28 "keywords": "",
29 "addedInLastDays": 0,
30 "adState": "published",
31 "sort": "",
32}
33
34
35run = client.actor("sian.agency/daft-property-scraper").call(run_input=run_input)
36
37
38print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
39for item in client.dataset(run.default_dataset_id).iterate_items():
40 print(item)
41
42