1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "texts": [
9 "The delivery was fast and the headphones sound great. The battery easily lasts a full working day, but the ear cushions get warm after an hour.",
10 "La calidad es excelente, pero el envío tardó dos semanas en llegar. El vendedor respondió rápido cuando pregunté por el seguimiento del paquete.",
11 "Le produit est arrivé cassé et le service client n'a jamais répondu à mes messages. J'ai dû ouvrir un litige pour être remboursé.",
12 "Sehr gutes Preis-Leistungs-Verhältnis. Die Einrichtung dauerte nur fünf Minuten, allerdings ist die Akkulaufzeit kürzer als angegeben.",
13 "Buscamos un desarrollador backend con experiencia en Python y bases de datos SQL. Trabajo remoto, contrato indefinido y horario flexible.",
14 "Appartement lumineux de deux pièces au troisième étage, proche du métro. Cuisine équipée, balcon et cave. Disponible à partir du 1er janvier.",
15 "Wir suchen eine erfahrene Buchhalterin in Teilzeit für unser Büro in Hamburg. Gute Deutsch- und Englischkenntnisse sind erforderlich.",
16 "Producto muy recomendable: funciona tal como se describe, la batería dura varios días y el tamaño es perfecto para llevarlo en el bolso.",
17 ] }
18
19
20run = client.actor("gazidev/bulk-text-translator").call(run_input=run_input)
21
22
23print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
24for item in client.dataset(run.default_dataset_id).iterate_items():
25 print(item)
26
27