Skip to content

Instantly share code, notes, and snippets.

@voxxit
Created September 24, 2010 01:49
Show Gist options
  • Save voxxit/594735 to your computer and use it in GitHub Desktop.
Save voxxit/594735 to your computer and use it in GitHub Desktop.
# Takes a snapshot of the HTML on a page. Used for Google AJAX crawling. This script
# must be run with jruby 1.5.2 or higher. Please see this page for more details:
#
# http://code.google.com/web/ajaxcrawling/docs/getting-started.html
#
require 'rubygems'
require 'celerity'
browser = Celerity::Browser.new
browser.goto("http://myhurricane.net#{ARGV[0]}")
browser.wait
puts browser.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment