1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "urls": [
10 { "url": "https://www.tiktok.com/@addisonre" },
11 { "url": "https://www.tiktok.com/@estelle.diary/video/7528195989270842655" },
12 { "url": "https://www.tiktok.com/@khaby.lame" },
13 { "url": "https://www.tiktok.com/@aliassafari1/video/7515041580957551890" },
14 ],
15 "proxy": {
16 "useApifyProxy": True,
17 "apifyProxyGroups": [],
18 "apifyProxyCountry": "",
19 },
20}
21
22
23run = client.actor("thenetaji/tiktok-post-scraper").call(run_input=run_input)
24
25
26print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
27for item in client.dataset(run["defaultDatasetId"]).iterate_items():
28 print(item)
29
30