Exemplo n.º 1
0
def get_tweet_with_time(hashtagSearched):

    myTweet = Tweet(hashtagSearched)
    tweets = myTweet.getTweetWithTime()
    result = tweets.to_dict(orient='index')
    result = {str(k): v for k, v in result.items()}
    listTweet = []
    for tweet in result.keys():
        listTweet.append(result[tweet])

    return jsonify({'tweets': listTweet})