1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "texts": [
9 "The blender is fantastic. Quiet, powerful and easy to clean. Best purchase this year!",
10 "Terrible. It broke after two days and support never answered my emails.",
11 "La entrega llegó tarde y la caja estaba rota, pero el producto funciona bien.",
12 "Una experiencia horrible, el camarero fue grosero y la comida estaba fría.",
13 "このお店の料理は本当においしくて、スタッフもとても親切でした。また来たいです。",
14 "最悪です。ひどい品質で、二度と買いません。",
15 ] }
16
17
18run = client.actor("northbell/review-sentiment").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