Skip to content

Commit 399f8e1

Browse files
committed
fix: [onion lookup] fix parsing of invalid url
1 parent 9651140 commit 399f8e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/lib/crawlers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@
7373
def api_get_onion_lookup(domain): # TODO check if object process done ???
7474
domain = domain.lower().strip()
7575
parts = domain.split('.onion')
76-
if len(parts) > 1:
77-
for word in [part + '.onion' for part in parts[:-1]] + [parts[-1]]:
78-
if len(word) >= 32 and word.endswith('.onion'):
79-
api_get_onion_lookup(word)
76+
# if len(parts) > 1:
77+
# for word in [part + '.onion' for part in parts[:-1]] + [parts[-1]]:
78+
# if len(word) >= 32 and word.endswith('.onion'):
79+
# api_get_onion_lookup(word)
8080

8181
url_unpack = unpack_url(domain)
8282
if not url_unpack:

0 commit comments

Comments
 (0)