Exemplo n.º 1
0
def getMessageWithHashtag(hashtag_id):
    handler = HashtagsHandler()
    return handler.getHashtagByID(hashtag_id)
Exemplo n.º 2
0
def hashtagText(hashtag_text):
    handler = HashtagsHandler()
    hashtag_text = '#' + hashtag_text # concat the # to the hashtag text
    return handler.getHashtagByText(hashtag_text)
Exemplo n.º 3
0
def getHashtagsInMessage(message_id):
    handler = HashtagsHandler()
    return handler.getHashtagsFromMessage(message_id)
Exemplo n.º 4
0
def hashtags():
    handler = HashtagsHandler()
    return handler.getAllHashtags()
Exemplo n.º 5
0
def trends():
    handler = HashtagsHandler()
    return handler.getTrends()
Exemplo n.º 6
0
def getMessageByHashtagAndGroup(group_id, hashtag_text):
    handler = MessageHandler()
    hHandler = HashtagsHandler()
    hashtag_text = '#' + hashtag_text  # concat the # to the hashtag text
    return hHandler.getMessagesWithHashtagTextAndGroup(hashtag_text, group_id)
Exemplo n.º 7
0
def getMessageByHashtag(hashtag_text):
    handler = MessageHandler()
    hHandler = HashtagsHandler()
    hashtag_text = '#' + hashtag_text  # concat the # to the hashtag text
    return hHandler.getMessagesWithHashtagText(hashtag_text)