From 66dce6e43459b049e327c618a6acf320b0db4550 Mon Sep 17 00:00:00 2001 From: Robert Svoboda Date: Fri, 27 Jan 2017 10:41:21 +0100 Subject: [PATCH] Filter mode didn't work due to missing auth object in API() call. Also nonnumerical twitter handles were not cast to string causing program to end unexpectedly. --- streamwatcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/streamwatcher.py b/streamwatcher.py index 615e3a1..e48b817 100755 --- a/streamwatcher.py +++ b/streamwatcher.py @@ -65,8 +65,8 @@ def main(): username_list.append(user) for username in username_list: - user = tweepy.API().get_user(username) - userid_list.append(user.id) + user = tweepy.API(auth).get_user(username) + userid_list.append(str(user.id)) follow_list = userid_list else: