1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "topic_or_product": "Kuala Lumpur aesthetic cafe with specialty matcha",
10 "target_audience": "Gen-Z coffee lovers and weekend cafe hoppers",
11 "key_selling_points": "Imported Kyoto ceremonial matcha, minimalist wabi-sabi interior, great natural lighting for photos, price around RM 18-25.",
12}
13
14
15run = client.actor("enchantingly_lockbox/xiaohongshu-red-viral-post-ai-image-prompt-generator").call(run_input=run_input)
16
17
18print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
19for item in client.dataset(run.default_dataset_id).iterate_items():
20 print(item)
21
22