From b8a6a431bf76631aa4db82a37d5067929b264ee6 Mon Sep 17 00:00:00 2001 From: Thomas Wade Date: Tue, 18 Sep 2018 17:45:01 +0930 Subject: [PATCH] Initialise to None --- scrape.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scrape.py b/scrape.py index f23e5b4..349c5b6 100755 --- a/scrape.py +++ b/scrape.py @@ -40,12 +40,12 @@ print('WebDriver initialised') # User class, holds all the data we will be collecting from user pages # It's being used here as a more structured alternative to a dictionary class User: - url_username = '' - username = '' - track_count = '' - like_count = '' - following_count = '' - follower_count = '' + url_username = None + username = None + track_count = None + like_count = None + following_count = None + follower_count = None user_dict = {} users_to_process = ['thomotron', 'lacheque', 'slynk', 'bossfightswe']