1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [
10 "https://www.rightmove.co.uk/properties/133723646/",
11 "https://www.rightmove.co.uk/property-to-rent/find.html?locationIdentifier=REGION%5E87490",
12 "https://www.rightmove.co.uk/property-for-sale/find.html?locationIdentifier=REGION%5E87490",
13 ],
14 "search": "London",
15 "maxItems": 20,
16 "endPage": 1,
17 "customMapFunction": "(object) => { return {...object} }",
18}
19
20
21run = client.actor("epctex/rightmove-scraper").call(run_input=run_input)
22
23
24print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
25for item in client.dataset(run.default_dataset_id).iterate_items():
26 print(item)
27
28