Guest User

Untitled

a guest
Mar 4th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. require 'twitter'
  2.  
  3. # your Twitter credentials
  4. twitter_username = ''
  5. twitter_password = ''
  6.  
  7. # the user you'd like to check friends / followers for. Set to nil, or omit for your own list
  8. search_user = ''
  9.  
  10. client = Twitter::Base.new(twitter_username,twitter_password)
  11.  
  12. sorted_friends = client.friend_ids.map {|id| c.user(id).screen_name}.sort
  13. sorted_friends = client.follower_ids.map {|id| c.user(id).screen_name}.sort
Add Comment
Please, Sign In to add comment