Incredibly fast crawler designed for OSINT.
Rename function
Fabian Affolter254c4346f2e0
diff --git a/photon.py b/photon.pyindex 21ac42d..68dfd6f 100644--- a/photon.py+++ b/photon.py@@ -338,12 +338,12 @@ def xmlParser(response):def zap(url):"""Extract links from robots.txt and sitemap.xml."""if args.archive:- from plugins.wayback import timeMachine+ from plugins.wayback import time_machineprint('%s Fetching URLs from archive.org' % run)if False:- archived_urls = timeMachine(domain, 'domain')+ archived_urls = time_machine(domain, 'domain')else:- archived_urls = timeMachine(host, 'host')+ archived_urls = time_machine(host, 'host')print('%s Retrieved %i URLs from archive.org' % (good, len(archived_urls) - 1))for url in archived_urls:diff --git a/plugins/wayback.py b/plugins/wayback.pyindex 2c029a4..6827bce 100644--- a/plugins/wayback.py+++ b/plugins/wayback.py@@ -4,7 +4,7 @@ import jsonfrom requests import get-def timeMachine(host, mode):+def time_machine(host, mode):"""Query archive.org."""url = "http://web.archive.org/cdx/search?url=%s&matchType=%s&collapse=urlkey&fl=original&filter=mimetype:text/html&filter=statuscode:200&output=json&from=20180101&to=20181231" % (host, mode)response = get(url).text