@staticmethod
    def to_dict(post, url):
        return {"id": post.id_str, "text": post.text, "url": url + post.author.screen_name + "/status/" + post.id_str}


# Tweepy Stream Class Wrapper
# Created to define a handler to manage the SIGTERM signal sent by
# celery task revoke
dataset/ETHPy150Open joausaga/reportbytwitter/cparte/social_network.py/Twitter.to_dict/original