1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "locationSlug": "london-england--united-kingdom",
10 "batches": [
11 { "locationSlug": "london-england--united-kingdom" },
12 { "locationSlug": "manchester-gtm--united-kingdom" },
13 ],
14 "urls": ["https://www.loopnet.co.uk/search/commercial-property/london-england--united-kingdom/for-lease/"],
15 "site": "co-uk",
16 "proxyConfiguration": { "useApifyProxy": True },
17}
18
19
20run = client.actor("ahmed_jasarevic/loopnet-scraper").call(run_input=run_input)
21
22
23print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
24for item in client.dataset(run.default_dataset_id).iterate_items():
25 print(item)
26
27