Skip to content

Commit

Permalink
chg: [module] debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Oct 11, 2024
1 parent 44d1860 commit e55aeab
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions bin/modules/CEDetector.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def compute(self, message): # TODO LIMIT TO DARKWEB ???
words = set(words)

for word in words:
print(word)
if word in self.csam_words:
is_csam = True
if word in self.child_worlds:
Expand Down Expand Up @@ -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__":
Expand Down

0 comments on commit e55aeab

Please sign in to comment.