Skip to content

Instantly share code, notes, and snippets.

@lpgauth
Created July 27, 2010 13:02
Show Gist options
  • Save lpgauth/492192 to your computer and use it in GitHub Desktop.
Save lpgauth/492192 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'grackle'
client = Grackle::Client.new(:auth=>{:type=>:basic,:username=>'lpgauth',:password=>'password'})
while true do
begin
if client.users.show?({:screen_name=>'soundcloud'}).followers_count == 24999
client.friendships.create!({:screen_name=>'soundcloud'})
break
end
rescue Grackle::TwitterError
# noop
end
sleep(30)
end
@lpgauth
Copy link
Author

lpgauth commented Jul 27, 2010

Logs of number of followers GMT-5 for user SoundCloud:

07:26:40 : 24997
07:30:44 : 24997
07:31:14 : 24997
07:31:45 : 24997
07:32:15 : 24997
07:32:46 : 24997
07:33:17 : 24997
07:33:47 : 24997
07:34:18 : 24997
07:34:48 : 24999

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment