1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "startUrls": [
10 { "url": "https://www.tiktok.com/@nasa" },
11 { "url": "https://www.tiktok.com/@khaby.lame" },
12 { "url": "https://www.tiktok.com/@zachking" },
13 { "url": "https://www.tiktok.com/@natgeo" },
14 { "url": "https://www.tiktok.com/@mrbeast" },
15 ],
16 "searchQueries": [
17 "charlidamelio",
18 "@bellapoarch",
19 "willsmith",
20 "therock",
21 "selenagomez",
22 ],
23}
24
25
26run = client.actor("aboo.script/tiktok-profiles-scraper").call(run_input=run_input)
27
28
29print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
30for item in client.dataset(run.default_dataset_id).iterate_items():
31 print(item)
32
33