pyTweetBot.stats package

Submodules

pyTweetBot.stats.TweetStatistics module

exception pyTweetBot.stats.TweetStatistics.TweetAlreadyCountedException

Bases: exceptions.Exception

Exception: the tweet is already counted in stats

class pyTweetBot.stats.TweetStatistics.TweetStatistics(slope=25, beta=5)

Bases: object

TWeet statistics managing class

add(tweet)

Add a tweet to the stats :param tweet: :return:

count(weekday, hour)

Get total counts for a tuple (weekday, hour) :param weekday: :param hour: :return:

expect(weekday, hour)

Get expected retweet for a tuple weekday, hour. :param weekday: :param hour: :return:

expect_norm(weekday, hour)

Get expected normalized retweet value for a tuple week, hour :param weekday: :param hour: :return:

static load(filename)

Load the object :param filename: :return:

save(filename)

Save the object to a file :param filename: :return:

start()

Start statistic counting

stop()

Stop statistic counting

value(weekday, hour)

Get total retweets/likes to a tuple weekday, hour :param weekday: :param hour: :return:

pyTweetBot.stats.UserStatistics module

Module contents