1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "inputUrls": ["https://www.royallepage.ca/en/searchgeo/homes/ab/rocky-mountains?search_str=Ontario%2C+ON%2C+CAN&csrfmiddlewaretoken=bpBKZVqrB7ctuMDMqCWNMVkLUgx358aF3Hx4et3KrylqmJ5v9Rw8NeMFmDHvkywG&property_type=&house_type=&features=&listing_type=&lat=50.926163435&lng=-84.74493&upper_lat=&upper_lng=&lower_lat=&lower_lng=&bypass=&radius=&zoom=&display_type=gallery-view&travel_time=false&travel_time_min=30&travel_time_mode=drive&travel_time_congestion=&da_id=&segment_id=&tier2=False&tier2_proximity=0&address=Ontario&method=homes&address_type=province&city_name=&prov_code=ON&school_id=&boundary=false&min_price=0&max_price=5000000%2B&min_leaseprice=0&max_leaseprice=5000%2B&beds=0&baths=0&transactionType=SALE&keyword=&sortby=%E2%80%9D"] }
9
10
11run = client.actor("kinaesthetic_millionaire/royal-lepage-real-estate-data-scraper").call(run_input=run_input)
12
13
14print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
15for item in client.dataset(run["defaultDatasetId"]).iterate_items():
16 print(item)
17
18