1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "places": ["https://www.google.com/maps/place/?q=place_id:ChIJJ3SpfQsZTIYRIcqOUQVKF1M"],
10 "placeItems": [],
11 "runMode": "monitor",
12 "maxReviewsPerPlace": 20,
13 "maxPlacesPerRun": 50,
14 "sortBy": "newest",
15 "locale": "en-US",
16 "mapsHost": "www.google.com",
17 "languages": [],
18 "negativeRatingThreshold": 2,
19 "maxPriorityActionsPerPlace": 50,
20 "consecutiveMissThreshold": 3,
21 "historyStoreName": "google-maps-review-history",
22 "maxConcurrency": 1,
23 "delayBetweenPlacesMs": 1500,
24 "navigationTimeoutSecs": 35,
25 "maxRetriesPerPlace": 0,
26 "webhookUrls": [],
27 "alertEmails": [],
28 "emailMode": "digest",
29 "notifyOn": "priority_actions",
30 "minPriorityToNotify": "high",
31}
32
33
34run = client.actor("basta_compilar/google-maps-review-change-feed").call(run_input=run_input)
35
36
37print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
38for item in client.dataset(run.default_dataset_id).iterate_items():
39 print(item)
40
41