From a4a7e137f725aba232ee20632f7ae23bd559acf9 Mon Sep 17 00:00:00 2001 From: Daniel Schulte Date: Sun, 18 Mar 2018 19:16:59 +0100 Subject: [PATCH] Log whether Retweets are enabled or not when starting the application --- printer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/printer.py b/printer.py index 8200cf6..b7733c2 100755 --- a/printer.py +++ b/printer.py @@ -249,13 +249,15 @@ def main(): check_rate_limits(api) + stream_name = ",".join(args.keywords) if args.keywords else "Timeline" + show_rts = None if len(args.keywords) == 0: show_rts = False if args.no_retweets else True else: show_rts = True if args.retweets else False + stream_name += " (including Retweets)" if show_rts else " (without Retweets)" - stream_name = ",".join(args.keywords) if args.keywords else "Timeline" def start_streaming(listener, api): stream = tweepy.Stream(listener=listener, auth=api.auth)