Incredibly fast crawler designed for OSINT.
Revert removing `files` parameter
ConnorSkees21b3ff058fb0
diff --git a/core/utils.py b/core/utils.pyindex d70c6d8..b131207 100644--- a/core/utils.py+++ b/core/utils.py@@ -21,7 +21,7 @@ def regxy(pattern, response, supress_regex, custom):supress_regex = True-def is_link(url, processed):+def is_link(url, processed, files):"""Determine whether or not a link should be crawledA url should not be crawled if itdiff --git a/photon.py b/photon.pyindex 866658a..ebbc550 100644--- a/photon.py+++ b/photon.py@@ -209,7 +209,7 @@ def extractor(url):# Remove everything after a "#" to deal with in-page anchorslink = link[1].replace('\'', '').replace('"', '').split('#')[0]# Checks if the URLs should be crawled- if is_link(link, processed):+ if is_link(link, processed, files):if link[:4] == 'http':if link.startswith(main_url):verb('Internal page', link)