Skip to content

Incredibly fast crawler designed for OSINT.

Add files via upload

Somdev Sangwan7bc7ababf7bb
diff --git a/photon.py b/photon.py
index 4f03dc5..31d6e47 100644
--- a/photon.py
+++ b/photon.py
@@ -184,7 +184,10 @@ def topLevel(url):
toplevel = '.'.join(urlparse(main_url).netloc.split('.')[-2:]).split(ext)[0] + ext
return toplevel
-domain = topLevel(main_url)
+try:
+ domain = topLevel(main_url)
+except:
+ domain = host
####
# This function makes requests to webpage and returns response body