From eb70076565bc9246d615544343b146c68051dc4f Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Wed, 18 Mar 2015 23:20:46 +0100 Subject: [PATCH] Further improve tweet text handling --- getter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getter.py b/getter.py index 6c4cfab..e096b0b 100755 --- a/getter.py +++ b/getter.py @@ -33,7 +33,7 @@ while True: for status in timeline: if status.text.find("@" + user) > 1: continue - text = status.text.encode("UTF-8").split(" ")[1] + text = status.text.encode("UTF-8")[status.text.find(" ")+1:] sender = status.user.screen_name.encode("UTF-8") twid = int(status.id) try: