This is the code used to analyze tweeting pattern of celebrities and leaders. The tweet dump code dumps the maximumallowed code from twitter. To use that code please obtain the secret key from twitter developer. The tweet analyzer code opens the pickled file to look at time series data.
I used this code on India's most popular people on twitter as on October 2017. You can read about it here: https://debayandasgupta.quora.com/How-India%E2%80%99s-most-followed-tweet-Part-1 and here https://debayandasgupta.quora.com/Twitter-activity-of-bollywood-Part-2