def rtvt_aio(): tweets = TimeFix.adjust_datetimes('1413240876', AllFriends.get_friends_tweets()) retweets = TimeFix.adjust_datetimes('1413240876', AllFriends.get_friends_retweets()) return AllFriends.create_rtvt_aio_plot(tweets, retweets)
def retweet_pie(tweet): path = '/home/nick/.virtualenvs/twitterbots/bots/output/tmp/' filename = 'retweet_pie.png' tweets = User(tweet[5]).user_tweets() tweets = TimeFix.adjust_datetimes(tweet[5], tweets) retweets = User(tweet[5]).user_retweets() retweets = TimeFix.adjust_datetimes(tweet[5], retweets) User.create_retweet_pie(tweet[5], tweets, retweets) return path + filename
def aio(): statuses = TimeFix.adjust_datetimes( '1413240876', AllFriends.get_friend_statuses()[0]) return AllFriends.create_aio_plot(statuses)
def statbox(tweet): tweets = User(tweet[5]).user_tweets() tweets = TimeFix.adjust_datetimes(tweet[5], tweets) retweets = User(tweet[5]).user_retweets() retweets = TimeFix.adjust_datetimes(tweet[5], retweets) statuses = User(tweet[5]).user_statuses()[0] statuses = TimeFix.adjust_datetimes(tweet[5], statuses) box_data = User.user_data_box(tweet[5], tweets, retweets, statuses) box_strings = User.box_string(tweet[5], box_data) create = User.create_stat_box(tweet[5], box_strings) return str(create)
def per_day(tweet): path = '/home/nick/.virtualenvs/twitterbots/bots/output/tmp/' filename = 'per_day.png' statuses = User(tweet[5]).user_statuses()[0] statuses = TimeFix.adjust_datetimes(tweet[5], statuses) User.create_per_day_plot(tweet[5], statuses) return path + filename
def sources(tweet): path = '/home/nick/.virtualenvs/twitterbots/bots/output/tmp/' filename = 'source_pie' statuses = User(tweet[5]).user_statuses()[0] statuses = TimeFix.adjust_datetimes(tweet[5], statuses) User.create_source_pie(tweet[5], statuses) return path + filename
def tweet_cloud(tweet): path = '/home/nick/.virtualenvs/twitterbots/bots/output/tmp/' filename = 'word_cloud.png' tweets = User(tweet[5]).user_tweets() tweets = TimeFix.adjust_datetimes(tweet[5], tweets) User.create_tweet_cloud(tweet[5], tweets) return path + filename