Incredibly fast crawler designed for OSINT.
fix the error of SSL mismatch in the certificate
Keith Leeda1f7055011c
diff --git a/photon.py b/photon.pyindex d4a5867..07face0 100644--- a/photon.py+++ b/photon.py@@ -232,7 +232,7 @@ def requester(url):####def zap(url):- response = get(url + '/robots.txt').text # makes request to robots.txt+ response = get(url + '/robots.txt', verify=False).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 itif matches:@@ -243,7 +243,7 @@ def zap(url):storage.add(url) # add the url to storage list for crawlingrobots.add(url) # add the url to robots listprint('%s URLs retrieved from robots.txt: %s' % (good, len(robots)))- response = get(url + '/sitemap.xml').text # makes request to sitemap.xml+ response = get(url + '/sitemap.xml',verify=False).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 urlsif matches: # if there are any matches