Skip to content

Incredibly fast crawler designed for OSINT.

RE: Adding code to detect and report broken links.

sneh-m63db80743047
diff --git a/photon.py b/photon.py
index 555b9fa..58b1c81 100644
--- a/photon.py
+++ b/photon.py
@@ -172,7 +172,6 @@ def requester(url):
#check if link is not broken
if(response.status_code == codes.ok):
return response.text # return response body
-
else:
failed.add(url) # add it to the failed list
@@ -182,7 +181,6 @@ def requester(url):
#check if link is not broken
if(response.status_code == codes.ok):
return response.text # return response body
-
else:
failed.add(url) # add it to the failed list