Skip to content

Instantly share code, notes, and snippets.

@peteonrails
Created March 20, 2010 21:11
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 peteonrails/338911 to your computer and use it in GitHub Desktop.
Save peteonrails/338911 to your computer and use it in GitHub Desktop.
# wesbos:
# make sure you have Ruby and Rubygems installed
# Get the twitter gem with 'gem install twitter'
# Then, run irb and type this code
Twitter.follower_ids('peteonrails').each { |f| puts Twitter.follower_ids(f).count }
# If you'd rather have a total, do this:
Twitter.follower_ids('peteonrails').inject { |memo, f| memo += Twitter.follower_ids(f).count }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment