1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "places": [{
10 "place_id": "ChIJN1t_tDeuEmsRUsoyG83frY4",
11 "cid": "10281019595535971924",
12 "title": "Example Restaurant Ltd.",
13 "category": "Italian restaurant",
14 "categories": [
15 "Italian restaurant",
16 "Pizza restaurant",
17 ],
18 "website": "https://example-restaurant.example",
19 "phone": "+49 89 12345678",
20 "description": "Sample Italian restaurant in Munich, family-owned since 1985.",
21 "open_hours": {
22 "Monday": "11:00-22:00",
23 "Tuesday": "11:00-22:00",
24 },
25 "review_count": 320,
26 "review_rating": 4.5,
27 "images": [
28 {
29 "title": "Interior",
30 "image": "https://lh5.googleusercontent.com/p/1.jpg",
31 },
32 {
33 "title": "Dish",
34 "image": "https://lh5.googleusercontent.com/p/2.jpg",
35 },
36 {
37 "title": "Menu",
38 "image": "https://lh5.googleusercontent.com/p/3.jpg",
39 },
40 {
41 "title": "Storefront",
42 "image": "https://lh5.googleusercontent.com/p/4.jpg",
43 },
44 {
45 "title": "Terrace",
46 "image": "https://lh5.googleusercontent.com/p/5.jpg",
47 },
48 ],
49 "owner": {
50 "id": "123",
51 "name": "Example Restaurant Ltd.",
52 "link": "https://maps.google.com/owner",
53 },
54 }],
55 "proxyConfiguration": { "useApifyProxy": True },
56}
57
58
59run = client.actor("santamaria-automations/gbp-completeness-audit").call(run_input=run_input)
60
61
62print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
63for item in client.dataset(run["defaultDatasetId"]).iterate_items():
64 print(item)
65
66