Incredibly fast crawler designed for OSINT.
fixed average request time calculation
Somdev Sangwanc1572c49b342
diff --git a/photon.py b/photon.pyindex 46e95b2..828ef52 100644--- a/photon.py+++ b/photon.py@@ -350,7 +350,7 @@ diff = (now - then) # finds total time takendef timer(diff):minutes, seconds = divmod(diff, 60) # Changes seconds into minutes and seconds- time_per_request = diff / len(processed) # Finds average time taken by requests+ time_per_request = diff / float(len(processed)) # Finds average time taken by requestsreturn minutes, seconds, time_per_requesttime_taken = timer(diff)minutes = time_taken[0]@@ -421,7 +421,7 @@ good, len(scripts), good, len(external),(('%s-%s' % (red, end)) * 50)))print ('%s Total time taken: %i:%i' % (info, minutes, seconds))-print ('%s Average request time: %i' % (info, time_per_request))+print ('%s Average request time: %s' % (info, str(time_per_request)[:4]))if not colors: # if colors are disabledprint ('%s Results saved in %s directory' % (good, name))