1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "items": [
9 {
10 "shortCode": "SyntheticDemoIG",
11 "type": "Video",
12 "caption": "Synthetic Instagram demo record. Replace this with your scraped data.",
13 "ownerUsername": "rdn_synthetic_demo",
14 "likesCount": 12,
15 "commentsCount": 3,
16 "videoViewCount": 120,
17 },
18 {
19 "id": "9000000000000000001",
20 "webVideoUrl": "https://www.tiktok.com/@rdn_synthetic_demo/video/9000000000000000001",
21 "text": "Synthetic TikTok demo record. Replace this with your scraped data.",
22 "authorMeta": { "name": "rdn_synthetic_demo" },
23 "diggCount": 24,
24 "commentCount": 6,
25 "playCount": 240,
26 },
27 ] }
28
29
30run = client.actor("jfinny/research-data-normalizer").call(run_input=run_input)
31
32
33print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
34for item in client.dataset(run.default_dataset_id).iterate_items():
35 print(item)
36
37