From d91e14f2004510ea1ecb4f8960803eeab72f5f4c Mon Sep 17 00:00:00 2001 From: terrtia Date: Fri, 4 Oct 2024 13:44:50 +0200 Subject: [PATCH] chg: [domain lookup] extract domain from url input --- bin/lib/crawlers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/lib/crawlers.py b/bin/lib/crawlers.py index 46c20d76..f65309b8 100755 --- a/bin/lib/crawlers.py +++ b/bin/lib/crawlers.py @@ -69,6 +69,8 @@ faup = Faup() def api_get_onion_lookup(domain): domain = domain.lower() + url_unpack = unpack_url(domain) + domain = url_unpack['domain'] dom = Domain(domain) if not is_valid_onion_v3_domain(domain): return {'error': 'Invalid Domain', 'domain': domain}, 404