1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "keywords": [
10 "coffee",
11 "tea",
12 "matcha",
13 "espresso",
14 "latte",
15 "cold brew",
16 "cappuccino",
17 "green tea",
18 "chai",
19 "iced coffee",
20 "mocha",
21 "flat white",
22 "french press",
23 "decaf",
24 "oat milk",
25 "bubble tea",
26 "kombucha",
27 "hot chocolate",
28 "energy drink",
29 "yerba mate",
30 ],
31 "proxyConfiguration": {
32 "useApifyProxy": True,
33 "apifyProxyGroups": ["RESIDENTIAL"],
34 },
35}
36
37
38run = client.actor("s3nafps/google-trends-bulk-compare").call(run_input=run_input)
39
40
41print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
42for item in client.dataset(run.default_dataset_id).iterate_items():
43 print(item)
44
45