1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "texts": ["Short sentences help readers. Long, winding sentences that stack clause upon clause and rely on uncommon vocabulary tend to lose people before they reach the end. Write for the reader, then check the score."],
10 "targetKeywords": [
11 "readers",
12 "readability",
13 ],
14}
15
16
17run = client.actor("firebrick_zamia/text-readability-keyword-report").call(run_input=run_input)
18
19
20print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
21for item in client.dataset(run.default_dataset_id).iterate_items():
22 print(item)
23
24