Created
March 20, 2010 21:11
-
-
Save peteonrails/338911 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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