Skip to content

Instantly share code, notes, and snippets.

@alea12
Created March 29, 2013 07:39
Show Gist options
  • Save alea12/5269326 to your computer and use it in GitHub Desktop.
Save alea12/5269326 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'twitter'
target = ''
next_cursor = -1
Twitter.configure do |config|
config.consumer_key = ''
config.consumer_secret = ''
config.oauth_token = ''
config.oauth_token_secret = ''
end
fp = open(target + '.txt', 'w')
while next_cursor != 0 do
a = Twitter.follower_ids(target, {:cursor => next_cursor})
fp.print a.attrs[:ids].join("\n")
fp.print "\n"
next_cursor = a.attrs[:next_cursor]
end
fp.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment