Skip to content

Incredibly fast crawler designed for OSINT.

modified defaults of requester (call stack of updater) to support random chooser of NoneType. with out affecting performance. Also update host of the updater to be suiteable with the url and the http's actual request headers

gilacc0a6d0c3a3d0
diff --git a/core/requester.py b/core/requester.py
index 69f921c..9711c18 100644
--- a/core/requester.py
+++ b/core/requester.py
@@ -16,8 +16,8 @@ def requester(
headers=None,
timeout=10,
host=None,
- proxies=None,
- user_agents=None,
+ proxies=[None],
+ user_agents=[None],
failed=None,
processed=None
):
diff --git a/core/updater.py b/core/updater.py
index c0e4593..d576836 100644
--- a/core/updater.py
+++ b/core/updater.py
@@ -13,7 +13,7 @@ def updater():
print('%s Checking for updates' % run)
# Changes must be separated by ;
changes = '''major bug fixes;removed ninja mode;dropped python < 3.2 support;fixed unicode output;proxy support;more intels'''
- latest_commit = requester('https://raw.githubusercontent.com/s0md3v/Photon/master/core/updater.py', host='github.com')
+ latest_commit = requester('https://raw.githubusercontent.com/s0md3v/Photon/master/core/updater.py', host='raw.githubusercontent.com')
# Just a hack to see if a new version is available
if changes not in latest_commit:
changelog = re.search(r"changes = '''(.*?)'''", latest_commit)