From 1440e060e43b26eb8566028bd5cadcd93e9432a0 Mon Sep 17 00:00:00 2001 From: Thomas Wade Date: Sun, 30 Sep 2018 15:03:30 +0930 Subject: [PATCH] Show progress through user list --- scrape.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrape.py b/scrape.py index 8788451..6ba29f9 100755 --- a/scrape.py +++ b/scrape.py @@ -356,8 +356,8 @@ with shelve.open('shelf.db') as shelf: if not args.dump: while iterator <= MAX_DEGREE: - for user_str in users_to_process: - print('Processing ' + user_str + ' (distance ' + str(iterator) + ')') + for pos, user_str in enumerate(users_to_process): + print('Processing {} (distance {}, {} of {})'.format(user_str, str(iterator), str(pos), str(len(users_to_process)))) # Skip any users that have already been passed over to avoid infinite loops if user_str in user_dict.keys():