Created
October 17, 2012 16:03
-
-
Save tansaku/3906379 to your computer and use it in GitHub Desktop.
Get average numbers of words in your tweets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# uses http://code.google.com/p/python-twitter/ | |
username = 'tansaku' # insert your username here | |
import twitter | |
api = twitter.Api(username,count=1000) | |
statuses = api.GetUserTimeline() | |
sum([len(s.text.split()) for s in statuses])/len(statuses) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment