Skip to content

Commit e55aeab

Browse files
committed
chg: [module] debug
1 parent 44d1860 commit e55aeab

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

bin/modules/CEDetector.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def compute(self, message): # TODO LIMIT TO DARKWEB ???
7171
words = set(words)
7272

7373
for word in words:
74-
print(word)
7574
if word in self.csam_words:
7675
is_csam = True
7776
if word in self.child_worlds:
@@ -111,7 +110,18 @@ def test_detection():
111110
is_detected = True
112111
if not is_detected:
113112
not_detected.add(domain)
114-
print(not_detected)
113+
114+
print()
115+
print()
116+
print()
117+
print()
118+
for domain in not_detected:
119+
dom = Domain(domain)
120+
print('-----------', domain)
121+
for h in dom.get_correlation('title').get('title', []):
122+
print(Title(h[1:]).get_content().lower())
123+
print()
124+
print()
115125

116126

117127
if __name__ == "__main__":

0 commit comments

Comments
 (0)