1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "operation": "photos",
10 "places": [
11 "Katz's Delicatessen New York",
12 "https://www.google.com/maps/place/Eiffel+Tower/@48.8583701,2.2944813,17z/data=!4m6!3m5!1s0x47e66e2964e34e2d:0x8ddca9ee380ef7e0!8m2!3d48.8583701!4d2.2944813",
13 ],
14 "photoCategories": ["all"],
15 "maxPhotosPerPlace": 100,
16 "imageSize": "original",
17 "language": "en",
18 "includeVideos": True,
19}
20
21
22run = client.actor("sian.agency/google-maps-photos-scraper").call(run_input=run_input)
23
24
25print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
26for item in client.dataset(run.default_dataset_id).iterate_items():
27 print(item)
28
29