Log whether Retweets are enabled or not when starting the application
This commit is contained in:
parent
992c39fd59
commit
a4a7e137f7
|
@ -249,13 +249,15 @@ def main():
|
||||||
|
|
||||||
check_rate_limits(api)
|
check_rate_limits(api)
|
||||||
|
|
||||||
|
stream_name = ",".join(args.keywords) if args.keywords else "Timeline"
|
||||||
|
|
||||||
show_rts = None
|
show_rts = None
|
||||||
if len(args.keywords) == 0:
|
if len(args.keywords) == 0:
|
||||||
show_rts = False if args.no_retweets else True
|
show_rts = False if args.no_retweets else True
|
||||||
else:
|
else:
|
||||||
show_rts = True if args.retweets else False
|
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):
|
def start_streaming(listener, api):
|
||||||
stream = tweepy.Stream(listener=listener, auth=api.auth)
|
stream = tweepy.Stream(listener=listener, auth=api.auth)
|
||||||
|
|
Loading…
Reference in New Issue