Skip to content

Instantly share code, notes, and snippets.

@tansaku
Created October 17, 2012 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tansaku/3906379 to your computer and use it in GitHub Desktop.
Save tansaku/3906379 to your computer and use it in GitHub Desktop.
Get average numbers of words in your tweets
# 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