summaryrefslogtreecommitdiff
path: root/cupinder.py
diff options
context:
space:
mode:
Diffstat (limited to 'cupinder.py')
-rw-r--r--cupinder.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/cupinder.py b/cupinder.py
index cb0d171..cb3b28c 100644
--- a/cupinder.py
+++ b/cupinder.py
@@ -63,23 +63,27 @@ if __name__=='__main__':
profiles = tinder.get_recommendations(1)
+ new = 0
+
for p in profiles:
if not(db.has_profile_id(p)):
- extra += 1
+ new += 1
print(p)
db.store_profile(p)
- if extra == 0:
+ if new == 0:
print('[!] No new profiles to grab! Exiting...')
break
+ extra += new
+
print('[i] Loaded ' + config.COLOR_LIKE + '%d' % extra + config.COLOR_RESET \
+ ' new profile%s... Taking some rest now!' % ('s' if extra > 2 else ''))
- sleep(5 * 60)
+ sleep(20)
elif args.process: