1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "searchStringsArray": ["restaurants"],
10 "startUrls": [
11 { "url": "https://yandex.com/maps/org/no_plates_coffee/124606085044/" },
12 { "url": "https://yandex.com/maps/org/124606085044/" },
13 { "url": "https://yandex.com/maps/org/no_plates_coffee/124606085044/reviews/" },
14 { "url": "https://yandex.ru/maps/org/no_plates_coffee/124606085044/" },
15 { "url": "https://yandex.com/maps/?ll=-74.006%2C40.7128&z=12&text=coffee" },
16 { "url": "https://yandex.com/maps/?text=restaurants" },
17 { "url": "https://yandex.com/maps/202/new-york/search/restaurants/" },
18 { "url": "https://yandex.com/maps/202/new-york/category/coffee_shop/" },
19 { "url": "https://yandex.com/maps/?ol=biz&oid=1018907821" },
20 { "url": "https://yandex.com/maps/213/moscow/search/%D0%BA%D0%BE%D1%84%D0%B5/" },
21 { "url": "https://yandex.com/maps/213/moscow/search/coffee/?page=2" },
22 { "url": "https://m.yandex.com/maps/org/192990200894/" },
23 ],
24 "location": "New York, NY",
25 "maxResultsPerSearch": 20,
26 "proxyConfiguration": { "useApifyProxy": True },
27 "ignoreFieldsForChanges": [],
28}
29
30
31run = client.actor("abotapi/yandex-maps-scraper").call(run_input=run_input)
32
33
34print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
35for item in client.dataset(run.default_dataset_id).iterate_items():
36 print(item)
37
38