Beispiel #1
0
 def send_text_cloud(f_date, f_time, max_words):
     command_cloud = TweetCloud()
     MessageBoot.send('im going to generate Text CLOUD')
     command_cloud.generate(from_date=f_date, from_time=f_time,
                            max_words=max_words)
     command_cloud.send()
     MessageBoot.send('Text Cloud send')
Beispiel #2
0
 def send_data(f_date, f_time):
     command_cloud = EmojiTrend()
     MessageBoot.send('im going to generate emoji trends')
     command_cloud.generate(from_date=f_date,
                            from_time=f_time,
                            emoji_count=8)
     command_cloud.send()
     MessageBoot.send('emoji trends send')
Beispiel #3
0
 def send_hashtags_trends(f_date, f_time):
     command_cloud = HashtagTrend()
     MessageBoot.send('im going to generate Hashtags trends')
     command_cloud.generate(from_date=f_date,
                            from_time=f_time,
                            hashtag_count=15)
     command_cloud.send()
     MessageBoot.send('Hashtags trends send')
Beispiel #4
0
def tweet_cloud(from_date, from_time, max_words=1000):
    f_date = None
    f_time = None
    if from_date == 0:
        f_date = None
    else:
        f_date = float(from_date)

    if from_time == 0:
        f_time = None
    else:
        f_time = float(from_time)

    command_cloud = TweetCloud()
    MessageBoot.send('im going to generate Text CLOUD')
    command_cloud.generate(from_date=f_date, from_time=f_time,
                           max_words=max_words)
    command_cloud.send()
    MessageBoot.send('Text Cloud send')
Beispiel #5
0
 def send_tweet_chart(f_date, f_time):
     command_cloud = TweetChart()
     MessageBoot.send('im going to generate tweet chart')
     command_cloud.generate(from_date=f_date, from_time=f_time)
     command_cloud.send()
     MessageBoot.send('tweet chart Cloud send')
Beispiel #6
0
def keep_alive():
    now_time = datetime.datetime.now().strftime('%d-%b-%Y | %H:%M:%S')
    MessageBoot.send('i\'m here \n {}'.format(now_time))