Incredibly fast crawler designed for OSINT.
Fixed a bug -_-
Somdev Sangwan6c770acde593
diff --git a/photon.py b/photon.pyindex 6c6b64c..153139a 100644--- a/photon.py+++ b/photon.py@@ -193,7 +193,7 @@ def requester(url):def zap(url):try:- response = requester(url + '/robots.txt') # makes request to robots.txt+ response = requester(url + '/robots.txt').text # makes request to robots.txtif '<body' not in response: # making sure robots.txt isn't some fancy 404 pagematches = findall(r'Allow: (.*)|Disallow: (.*)', response) # If you know it, you know itfor match in matches: # iterating over the matches, match is a tuple here@@ -207,7 +207,7 @@ def zap(url):if len(matches) > 0: # if there are more than 0 matchesprint ('%s URLs retrieved from robots.txt: %s' % (good, len(robots)))- response = requester(url + '/sitemap.xml') # makes request to sitemap.xml+ response = requester(url + '/sitemap.xml').text # makes request to sitemap.xmlif '<body' not in response: # making sure robots.txt isn't some fancy 404 pagematches = findall(r'<loc>[^<]*</loc>', response) # regex for extracting urls