1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "text": "The water cycle describes the continuous movement of water on, above, and below the surface of the Earth. Water undergoes evaporation, condensation, and precipitation. During evaporation, water turns from liquid to vapor and rises into the atmosphere. Condensation occurs when water vapor cools and forms clouds. Precipitation happens when water falls from clouds as rain, snow, sleet, or hail.",
10 "questionType": "mixed",
11 "numQuestions": 5,
12 "difficulty": "medium",
13}
14
15
16run = client.actor("akash9078/ai-questions-generator").call(run_input=run_input)
17
18
19print("πΎ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
20for item in client.dataset(run["defaultDatasetId"]).iterate_items():
21 print(item)
22
23