1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "posts": [
9 {
10 "id": "cold-brew-launch",
11 "caption": """Sunday reset ☕ Our new oat milk cold brew is finally here! Smooth, low acid and made in small batches in Austin.
12Which flavor should we drop next? Comment below 👇
13.
14.
15.
16#coffee #coldbrew #oatmilk #austincoffee #love #instagood #like4like #coffeeshop #smallbatch #photooftheday #coffeelover #austintx""",
17 "firstComment": "#coffeetime #latteart #specialtycoffee",
18 },
19 {
20 "id": "monday",
21 "caption": "I love #coffee and #mondays. Shop the beans: https://shop.example.com",
22 },
23 ] }
24
25
26run = client.actor("feedwise/instagram-caption-checker").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