1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [
10 "https://www.properstar.co.uk/united-kingdom/london/buy/apartment-house",
11 "https://www.properstar.co.uk/united-kingdom/london/buy/apartment-house?p=2",
12 "https://www.properstar.co.uk/united-kingdom/london/rent/apartment-house",
13 "https://www.properstar.co.uk/united-kingdom/buy/apartment-house",
14 "https://www.properstar.co.uk/united-kingdom/london/buy/apartment-house?price=500000-1000000&bedrooms=2",
15 "https://www.properstar.co.uk/united-kingdom/london/buy/apartment-house?sort=price-asc",
16 "https://www.properstar.co.uk/united-kingdom/london/buy",
17 "https://www.properstar.co.uk/switzerland/buy/apartment-house",
18 "https://www.properstar.co.uk/listing/121377505",
19 "https://www.properstar.co.uk/agency/the-private-realtor-ltd/6482545",
20 ],
21 "proxy": {
22 "useApifyProxy": True,
23 "apifyProxyGroups": ["RESIDENTIAL"],
24 },
25 "incrementalMode": False,
26 "emitUnchanged": False,
27 "emitExpired": False,
28 "ignoreFieldsForChanges": [],
29}
30
31
32run = client.actor("abotapi/properstar-scraper").call(run_input=run_input)
33
34
35print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
36for item in client.dataset(run.default_dataset_id).iterate_items():
37 print(item)
38
39