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