Example #1
0
def getMessageWithHashtag(hashtag_id):
    handler = HashtagsHandler()
    return handler.getHashtagByID(hashtag_id)
Example #2
0
def hashtagText(hashtag_text):
    handler = HashtagsHandler()
    hashtag_text = '#' + hashtag_text # concat the # to the hashtag text
    return handler.getHashtagByText(hashtag_text)
Example #3
0
def getHashtagsInMessage(message_id):
    handler = HashtagsHandler()
    return handler.getHashtagsFromMessage(message_id)
Example #4
0
def hashtags():
    handler = HashtagsHandler()
    return handler.getAllHashtags()
Example #5
0
def trends():
    handler = HashtagsHandler()
    return handler.getTrends()
Example #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)
Example #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)