1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "urls": [{ "url": "https://www.rightmove.co.uk/commercial-property-to-let/find.html?locationIdentifier=REGION%5E87490&radius=0.0&rent.x=RENT&search=To+Rent&index=0&sortType=13&priceType=pcm&channel=COMMERCIAL_RENT&transactionType=LETTING&displayLocationIdentifier=London-87490.html&minPrice=17500&maxPrice=20000&areaSizeUnit=sqm&minSize=500&maxSize=7500&propertyTypes=business-park%2Ccommercial-property%2Cresidential-development%2Cstorage%2Ctakeaway%2Cretail_property_shopping_centre_%2Cretail_property_retail_park_%2Cretail_property_high_street_%2Cretail_property_out_of_town_%2Cretail_property_pop_up_%2Cconvenience-store%2Cgarage%2Chairdresser-barber-shop%2Cpost-office%2Cshop%2Cworkshop" }],
10 "maxListings": 100,
11}
12
13
14run = client.actor("rigelbytes/rightmove-scraper").call(run_input=run_input)
15
16
17print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
18for item in client.dataset(run["defaultDatasetId"]).iterate_items():
19 print(item)
20
21