1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "brands": [
10 "https://www.tiktok.com/@nike",
11 "https://www.tiktok.com/@adidas",
12 "https://www.tiktok.com/@redbull",
13 ],
14 "keywords": [
15 "nike",
16 "just do it",
17 ],
18 "hashtags": [
19 "#JustDoIt",
20 "#ImpossibleIsNothing",
21 ],
22 "maxVideosPerBrand": 20,
23 "maxMentions": 50,
24 "proxyConfiguration": { "useApifyProxy": True },
25}
26
27
28run = client.actor("rastriq/tiktok-brand-monitor").call(run_input=run_input)
29
30
31print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
32for item in client.dataset(run.default_dataset_id).iterate_items():
33 print(item)
34
35