1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "texts": [
10 "Default QA 1: please hide this shit before export.",
11 "Default QA 2: clean text without blocked words.",
12 "Default QA 3: this damn message is allowed to mask, but damnation stays safe.",
13 "Default QA 4: clean text without blocked words.",
14 "Default QA 5: spoiler should be caught by custom words.",
15 "Default QA 6: this damn message is allowed to mask, but damnation stays safe.",
16 "Default QA 7: please hide this shit before export.",
17 "Default QA 8: clean text without blocked words.",
18 "Default QA 9: this damn message is allowed to mask, but damnation stays safe.",
19 "Default QA 10: spoiler should be caught by custom words.",
20 "Default QA 11: please hide this shit before export.",
21 "Default QA 12: this damn message is allowed to mask, but damnation stays safe.",
22 "Default QA 13: please hide this shit before export.",
23 "Default QA 14: clean text without blocked words.",
24 "Default QA 15: spoiler should be caught by custom words.",
25 "Default QA 16: clean text without blocked words.",
26 "Default QA 17: please hide this shit before export.",
27 "Default QA 18: this damn message is allowed to mask, but damnation stays safe.",
28 "Default QA 19: please hide this shit before export.",
29 "Default QA 20: spoiler should be caught by custom words.",
30 "Default QA 21: this damn message is allowed to mask, but damnation stays safe.",
31 "Default QA 22: clean text without blocked words.",
32 "Default QA 23: please hide this shit before export.",
33 "Default QA 24: this damn message is allowed to mask, but damnation stays safe.",
34 "Default QA 25: spoiler should be caught by custom words.",
35 ],
36 "customWords": ["spoiler"],
37 "allowedWords": ["damnation"],
38}
39
40
41run = client.actor("maximedupre/profanity-checker").call(run_input=run_input)
42
43
44print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
45for item in client.dataset(run["defaultDatasetId"]).iterate_items():
46 print(item)
47
48