Skip to content

Instantly share code, notes, and snippets.

#
# http://xkcd.com/903/
# Wikipedia trivia: if you take any article, click on the first link in the article text not in parentheses or italics, and then repeat, you will eventually end up at "Philosophy"
#
# Usage: ruby xkcd.rb [keyword]
#
require "rubygems"
require "mechanize"
@agent = Mechanize.new