From a3470f8e8cb75ab89485c42d16a6ef650bb9b5ba Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Thu, 19 Mar 2015 20:44:07 +0100 Subject: [PATCH] Remove ".." from the incoming status text, which might be mistaken for a badly formatted date --- getter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getter.py b/getter.py index 0e10f18..95aedec 100755 --- a/getter.py +++ b/getter.py @@ -31,7 +31,7 @@ while True: timeline = tweepy.Cursor(api.search, q=search, since_id=savepoint).items() for status in timeline: - text = status.text.decode("UTF-8") + text = status.text.encode("UTF-8").replace("..","") sender = status.user.screen_name.encode("UTF-8") twid = int(status.id) comment = ""