Skip to content

Instantly share code, notes, and snippets.

@ukstudio
Created May 12, 2009 01:09
Show Gist options
  • Select an option

  • Save ukstudio/110253 to your computer and use it in GitHub Desktop.

Select an option

Save ukstudio/110253 to your computer and use it in GitHub Desktop.
# coding: utf-8
require 'rubygems'
require 'twitter'
user = ""
pass = ""
httpauth = Twitter::HTTPAuth.new(user, pass)
base = Twitter::Base.new(httpauth)
friends = base.friends.size
base.friends.each{|f| puts "#{f.screen_name}:#{f.followers_count}"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment