1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "brand": "Starbucks",
10 "country": "sg",
11 "maxPlaces": 5,
12 "maxReviewsPerPlace": 20,
13 "brands": [
14 {
15 "brand": "Starbucks",
16 "role": "us",
17 },
18 {
19 "brand": "Coffee Bean & Tea Leaf",
20 "role": "competitor",
21 },
22 {
23 "brand": "Toast Box",
24 "role": "competitor",
25 },
26 ],
27}
28
29
30run = client.actor("coppery_bulldozer/retail-voc-store-review-sweep").call(run_input=run_input)
31
32
33print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
34for item in client.dataset(run.default_dataset_id).iterate_items():
35 print(item)
36
37