1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "mode": "location",
10 "locations": [{
11 "suburb": "Melbourne",
12 "state": "VIC",
13 }],
14 "urls": [
15 "https://www.realcommercial.com.au/for-lease/in-melbourne,+vic+3000/",
16 "https://www.realcommercial.com.au/for-sale/offices/?locations=in-sydney,nsw",
17 "https://www.realcommercial.com.au/for-sale/offices/in-melbourne,+vic/",
18 "https://www.realcommercial.com.au/sold/in-sydney,+nsw/",
19 "https://www.realcommercial.com.au/leased/in-sydney,+nsw/",
20 "https://www.realcommercial.com.au/for-sale/in-melbourne,+vic?page=3",
21 "https://www.realcommercial.com.au/for-sale/?locations=in-sydney,nsw&propertyTypes=retail,offices&minPrice=100000&activeSort=price-desc&mapView=hybrid",
22 ],
23 "proxyConfiguration": {
24 "useApifyProxy": True,
25 "apifyProxyGroups": ["RESIDENTIAL"],
26 "apifyProxyCountry": "AU",
27 },
28 "incrementalMode": False,
29 "emitUnchanged": False,
30 "emitExpired": False,
31 "ignoreFieldsForChanges": [],
32}
33
34
35run = client.actor("abotapi/realcommercial-au-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