Created
July 27, 2010 13:02
-
-
Save lpgauth/492192 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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