Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

twitterhttpauthnew

Quick script to download members of twitter list using ruby and twitter gem
Thursday, 01 April 2010 18:49
// Use twitter gem to download members of ruby list, using cursors for multiple pages


#!/usr/bin/ruby

require 'rubygems'
require 'twitter'

httpauth = Twitter::HTTPAuth.new('', '')

client = Twitter::Base.new(httpauth)

m = client.list_members('', '', -1)
while m.next_cursor != 0
m.users.each {|ppc| puts ppc.screen_name}
m = client.list_members('', '', m.next_cursor)
end

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/mloNPIFHzSU/10875

 


Taxonomy by Zaragoza Online