Incredibly fast crawler designed for OSINT.
Fix hanging indent and line lengths
ConnorSkees54e55f6e611e
diff --git a/core/requester.py b/core/requester.pyindex fb4c8d3..cdd98f4 100644--- a/core/requester.py+++ b/core/requester.py@@ -28,8 +28,14 @@ def requester(url, main_url=None, delay=0, cook={}, headers={}, timeout=10, host'Connection': 'close',}try:- response = session.get(url, cookies=cook, headers=finalHeaders, verify=False,- timeout=timeout, stream=True)+ response = SESSION.get(+ url,+ cookies=cook,+ headers=finalHeaders,+ verify=False,+ timeout=timeout,+ stream=True+ )except TooManyRedirects:return 'dummy'if 'text/html' in response.headers['content-type']:@@ -45,16 +51,21 @@ def requester(url, main_url=None, delay=0, cook={}, headers={}, timeout=10, hostdef facebook(url):"""Interact with the developer.facebook.com API."""- return requests.get('https://developers.facebook.com/tools/debug/echo/?q=' + url,- verify=False).text+ return requests.get(+ 'https://developers.facebook.com/tools/debug/echo/?q=' + url,+ verify=False+ ).textdef pixlr(url):"""Interact with the pixlr.com API."""if url == main_url:# Because pixlr throws error if http://example.com is usedurl = main_url + '/'- return requests.get('https://pixlr.com/proxy/?url=' + url,- headers={'Accept-Encoding' : 'gzip'}, verify=False).text+ return requests.get(+ 'https://pixlr.com/proxy/?url=' + url,+ headers={'Accept-Encoding': 'gzip'},+ verify=False+ ).textdef code_beautify(url):"""Interact with the codebeautify.org API."""@@ -66,8 +77,12 @@ def requester(url, main_url=None, delay=0, cook={}, headers={}, timeout=10, host'Origin': 'https://codebeautify.org','Connection': 'close',}- return requests.post('https://codebeautify.com/URLService', headers=headers,- data='path=' + url, verify=False).text+ return requests.post(+ 'https://codebeautify.com/URLService',+ headers=headers,+ data='path=' + url,+ verify=False+ ).textdef photopea(url):"""Interact with the www.photopea.com API."""