From 81d782f7c3120a40123882bf4cc582e145264659 Mon Sep 17 00:00:00 2001 From: Blagovest Petrov Date: Sat, 5 Nov 2016 13:10:24 +0200 Subject: [PATCH] Tweets format converted due to uncompatibility with the app in the 286 pc --- server/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/server.py b/server/server.py index f3cd101..2213415 100644 --- a/server/server.py +++ b/server/server.py @@ -41,8 +41,9 @@ class TwitterApi(): def get_tweets_by_tag(self, tag): tweets = "" feed = self.api.search(tag, count=20) + timestamp = int(time.time()) for i in feed: - tweets = tweets + i.user.screen_name + ": " + i.text + "\n" + tweets = tweets + " 0x7F0x7F0x7F0x7F " + timestamp + " @" + i.user.screen_name + " " + i.text + "\n" return tweets.encode('utf-8').strip()