Skip to content

Instantly share code, notes, and snippets.

@paulca
Created March 24, 2009 08:13
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 paulca/83997 to your computer and use it in GitHub Desktop.
Save paulca/83997 to your computer and use it in GitHub Desktop.
require 'twitter'
# your Twitter credentials
twitter_username = ''
twitter_password = ''
# the user you'd like to check friends / followers for. Set to nil, or omit for your own list
search_user = ''
client = Twitter::Base.new(twitter_username,twitter_password)
sorted_friends = client.friend_ids.map {|id| c.user(id).screen_name}.sort
sorted_friends = client.follower_ids.map {|id| c.user(id).screen_name}.sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment