1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = { "texts": [
9 "Hello world",
10 "Good morning",
11 "Thank you",
12 "How much does it cost?",
13 "Where is the nearest hotel?",
14 ] }
15
16
17run = client.actor("dandelion_intern/batch-document-translator").call(run_input=run_input)
18
19
20print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
21for item in client.dataset(run["defaultDatasetId"]).iterate_items():
22 print(item)
23
24