Created
December 11, 2009 02:59
-
-
Save pjhyett/253936 to your computer and use it in GitHub Desktop.
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
USER = 'github' | |
require 'open-uri' | |
user_id = open("http://twitter.com/followers/ids/#{USER}.xml").read.scan(/\d+/).sort_by { rand }.first | |
user_name = open("http://twitter.com/users/show.xml?user_id=#{user_id}").read[/screen_name>(\w+)/, 1] | |
puts user_name | |
`open http://twitter.com/#{user_name}` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment