require "open-uri"

BASE_URL = "http://www.rubyist.net/~matz/slides/oscon2005/mgp"
"00001".upto("00059") { |n|
  puts "Fetching #{n}.html..."
  File.open(n + ".html", "w") { |f|
    f.write(open(BASE_URL + n + ".html").read)
  }
}