1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "locations": ["London"],
10 "startUrls": [
11 { "url": "https://www.rightmove.co.uk/property-for-sale/find.html?locationIdentifier=REGION%5E87490" },
12 { "url": "https://www.rightmove.co.uk/property-to-rent/find.html?locationIdentifier=REGION%5E87490" },
13 { "url": "https://www.rightmove.co.uk/property-for-sale/find.html?locationIdentifier=REGION%5E87490&index=24" },
14 { "url": "https://www.rightmove.co.uk/property-for-sale/find.html?locationIdentifier=REGION%5E87490&minPrice=300000&maxPrice=500000&minBedrooms=2&sortType=6&propertyTypes=flat&includeSSTC=false" },
15 { "url": "https://www.rightmove.co.uk/properties/94114530" },
16 { "url": "https://www.rightmove.co.uk/property-for-sale/property-155320229.html" },
17 { "url": "https://www.rightmove.co.uk/property-to-rent/property-108124898.html" },
18 { "url": "https://www.rightmove.co.uk/property-for-sale/Wimbledon.html" },
19 { "url": "https://www.rightmove.co.uk/house-prices/london.html" },
20 { "url": "https://www.rightmove.co.uk/house-prices/SW19.html" },
21 { "url": "https://www.rightmove.co.uk/house-prices/detail.html?country=england&locationIdentifier=REGION%5E87490&searchLocation=London" },
22 { "url": "https://www.rightmove.co.uk/house-prices/details/2f92dc36-9eea-49a6-9143-aedb0ba11b30" },
23 { "url": "https://www.rightmove.co.uk/new-homes-for-sale/find.html?locationIdentifier=REGION%5E87490" },
24 ],
25 "proxyConfiguration": { "useApifyProxy": True },
26 "ignoreFieldsForChanges": [],
27}
28
29
30run = client.actor("abotapi/rightmove-scraper").call(run_input=run_input)
31
32
33print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
34for item in client.dataset(run.default_dataset_id).iterate_items():
35 print(item)
36
37