Skip to content

Instantly share code, notes, and snippets.

@pjhyett
Created December 11, 2009 02:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pjhyett/253936 to your computer and use it in GitHub Desktop.
Save pjhyett/253936 to your computer and use it in GitHub Desktop.
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