Created
January 6, 2013 15:46
-
-
Save ymrl/4468020 to your computer and use it in GitHub Desktop.
block yoned_(1..99)
This file contains hidden or 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 'tw' | |
| Tw::Client.new.auth | |
| c = Twitter::Client.new | |
| (1..99).each do |i| | |
| Thread.new do | |
| begin | |
| sn = "yoned_#{i}" | |
| c.block(sn) | |
| end | |
| end | |
| end | |
| while Thread::list.length > 1 | |
| next | |
| end | |
| puts "complete" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment