1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "input": [
9 {
10 "url": "https://www.tiktok.com/@MS4wLjABAAAAxDhA8QWkQ9XuHvP1CM7gRYovEReyVffxZHVL3fpqrMklzsKs7_us19HM9L9jQXzm/video/7346600892520467717",
11 "inputId": "bd85891d-8d55-cc56-e4c7-a9427007ec34",
12 },
13 {
14 "url": "https://www.tiktok.com/@MS4wLjABAAAA07z5ITZ_LmPz_J8EH7e5yCw9rL1lPUr7r7mF_VG71lvMpyu_og58145T1qKcqiL1/video/7325262360225041665",
15 "inputId": "f58a7ca0-5766-0089-8af9-f193b227c51b",
16 },
17 ] }
18
19
20run = client.actor("insiteco/social-insight-scraper").call(run_input=run_input)
21
22
23print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
24for item in client.dataset(run["defaultDatasetId"]).iterate_items():
25 print(item)
26
27