1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "product_name": "Wireless Noise Cancelling Earbuds",
10 "reviews_text": """1. The sound quality is decent, but the battery only lasts 2 hours! Very disappointed.
112. Left earbud stopped working after 3 days. Returning it.
123. Bluetooth disconnects randomly when I am jogging.
134. Ear tips are too big, hurts my ears after 30 minutes.
145. Case feels very cheap and scratchy plastic.""",
15}
16
17
18run = client.actor("enchantingly_lockbox/e-commerce-review-ai-analyzer-shopee-amazon-tiktok").call(run_input=run_input)
19
20
21print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
22for item in client.dataset(run.default_dataset_id).iterate_items():
23 print(item)
24
25