1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [{ "url": "https://www.realtor.ca/map#ZoomLevel=4&Center=54.920828%2C-99.316406&LatitudeMax=69.85098&LongitudeMax=-15.46875&LatitudeMin=31.30671&LongitudeMin=176.83594&Sort=6-D&PropertyTypeGroupID=1&TransactionTypeId=3&PropertySearchTypeId=0&BuildingTypeId=17&Currency=CAD" }],
10 "proxy": {
11 "useApifyProxy": True,
12 "apifyProxyGroups": ["RESIDENTIAL"],
13 },
14}
15
16
17run = client.actor("memo23/realtor-canada-search-cheerio").call(run_input=run_input)
18
19
20print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
21for item in client.dataset(run["defaultDatasetId"]).iterate_items():
22 print(item)
23
24