|
@ -41,8 +41,9 @@ class TwitterApi(): |
|
|
def get_tweets_by_tag(self, tag): |
|
|
def get_tweets_by_tag(self, tag): |
|
|
tweets = "" |
|
|
tweets = "" |
|
|
feed = self.api.search(tag, count=20) |
|
|
feed = self.api.search(tag, count=20) |
|
|
|
|
|
timestamp = int(time.time()) |
|
|
for i in feed: |
|
|
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() |
|
|
return tweets.encode('utf-8').strip() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|