def __init__(self, id, created_at, sender_screen_name, recipient_screen_name, text): self.id = id self.created_at= created_at self.sender_screen_name = sender_screen_name self.recipient_screen_name = recipient_screen_name self.text = html_unescape(text)
def __init__(self, id, created_at, user, text, is_reply=False, is_retweet=False, is_favorite=False, # for replies in_reply_to_user='', # for retweets retweet_count=0, author='',): self.id = id self.created_at = created_at self.user = user self.text = html_unescape(text) self.is_reply = is_reply self.is_retweet = is_retweet self.is_favorite = is_favorite self.retweet_count = retweet_count self.author = author