Skip to content

Commit

Permalink
fix: [crawler] filter lookup tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Oct 7, 2024
1 parent 83e1108 commit d9fc014
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/lib/crawlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ def api_get_onion_lookup(domain): # TODO check if object process done ???
meta['first_seen'] = meta['first_seen'].replace('/', '-')
meta['last_seen'] = meta['last_check'].replace('/', '-')
meta['languages'] = list(meta['languages'])
tags = []
for tag in meta['tags']:
if tag.startswith('dark-web:') or tag.startswith('infoleak:'):
tags.append(tag)
meta['tags'] = tags
del meta['domain']
del meta['last_check']
del meta['type']
Expand Down

0 comments on commit d9fc014

Please sign in to comment.