Skip to content

Incredibly fast crawler designed for OSINT.

Fixed progess display for python3

Somdev Sangwan916d3e59444c
diff --git a/photon.py b/photon.py
index af51710..037df0b 100644
--- a/photon.py
+++ b/photon.py
@@ -432,7 +432,7 @@ def flash(function, links): # This shit is NOT complicated, please enjoy
futures = (threadpool.submit(function, link) for link in links)
for i, _ in enumerate(concurrent.futures.as_completed(futures)):
if i + 1 == len(links) or (i + 1) % thread_count == 0:
- sys.stdout.write('\r%s Progress: %i/%i' % (info, i, len(links)))
+ sys.stdout.write('\r%s Progress: %i/%i' % (info, i + 1, len(links)))
sys.stdout.flush()
print('')