1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "toolName": "report",
10 "input": {
11 "text": "Artificial intelligence is transforming industries by automating repetitive tasks, enhancing decision-making, and enabling new capabilities. Machine learning models can now recognize images, translate languages, and generate human-like text. Businesses are adopting AI to improve customer service, optimize supply chains, and accelerate research and development.",
12 "style": "blog",
13 "language": "en",
14 },
15}
16
17
18run = client.actor("ntriqpro/content-factory").call(run_input=run_input)
19
20
21print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
22for item in client.dataset(run["defaultDatasetId"]).iterate_items():
23 print(item)
24
25