1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "query": "Tell me what are the latest posts by humansofny on Instagram, check last 10 of them and give me a summary of repeating topics. Use the apify/instagram-post-scraper. Then create a new Notion page and write the summary there and give me back the link to that page." }
9
10
11run = client.actor("lukaskrivka/dataset-mcp-uploader").call(run_input=run_input)
12
13
14print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
15for item in client.dataset(run["defaultDatasetId"]).iterate_items():
16 print(item)
17
18