From e55aeab11c3fcd950e2b4bf5da3fdbc9d46cb774 Mon Sep 17 00:00:00 2001 From: terrtia Date: Fri, 11 Oct 2024 14:55:04 +0200 Subject: [PATCH] chg: [module] debug --- bin/modules/CEDetector.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/bin/modules/CEDetector.py b/bin/modules/CEDetector.py index e7835aee..06e58e68 100755 --- a/bin/modules/CEDetector.py +++ b/bin/modules/CEDetector.py @@ -71,7 +71,6 @@ class CEDetector(AbstractModule): words = set(words) for word in words: - print(word) if word in self.csam_words: is_csam = True if word in self.child_worlds: @@ -111,7 +110,18 @@ def test_detection(): is_detected = True if not is_detected: not_detected.add(domain) - print(not_detected) + + print() + print() + print() + print() + for domain in not_detected: + dom = Domain(domain) + print('-----------', domain) + for h in dom.get_correlation('title').get('title', []): + print(Title(h[1:]).get_content().lower()) + print() + print() if __name__ == "__main__":