1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "search",
10 "channel": "for-sale",
11 "locations": ["perth~region"],
12 "urls": [
13 "https://reiwa.com.au/for-sale/perth~region/",
14 "https://reiwa.com.au/for-sale/perth~region/?page=2",
15 "https://reiwa.com.au/for-sale/baldivis/",
16 "https://reiwa.com.au/for-sale/baldivis/houses/",
17 "https://reiwa.com.au/for-sale/baldivis/?minPrice=400000&maxPrice=700000&bedrooms=3&sortBy=price-asc",
18 "https://reiwa.com.au/rental-properties/perth/",
19 "https://reiwa.com.au/sold/baldivis/",
20 "https://reiwa.com.au/sold/baldivis/?page=2",
21 "https://reiwa.com.au/commercial/for-sale/perth/",
22 "https://reiwa.com.au/commercial/for-lease/perth/",
23 "https://reiwa.com.au/business/for-sale/perth/",
24 "https://reiwa.com.au/rural/for-sale/south-west~region/",
25 "https://reiwa.com.au/real-estate-agents/baldivis/",
26 "https://reiwa.com.au/real-estate-agent/adam-dineley-13546-0-567762/",
27 "https://reiwa.com.au/real-estate-agency/opal-realty-14506-0/",
28 "https://reiwa.com.au/1-canter-lane-baldivis-5049038/",
29 "https://reiwa.com.au/the-wa-market/resources/?types=news&page=1",
30 "https://reiwa.com.au/news/perth-vacancy-rate-drops-to-lowest-level-in-nearly-two-years/",
31 ],
32 "maxItems": 20,
33 "maxPages": 0,
34 "proxy": { "useApifyProxy": True },
35 "ignoreFieldsForChanges": [],
36}
37
38
39run = client.actor("abotapi/reiwa-com-au-scraper").call(run_input=run_input)
40
41
42print(f"πΎ Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
43for item in client.dataset(run.default_dataset_id).iterate_items():
44 print(item)
45
46