Created
March 3, 2012 01:14
-
-
Save kano4/1963287 to your computer and use it in GitHub Desktop.
screenshot in Ruby
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
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'capybara-webkit' | |
| require 'headless' | |
| Headless.ly do | |
| driver = Capybara::Driver::Webkit.new 'web_capture' | |
| driver.visit 'http://www.kano4.com' | |
| driver.render 'out.png' | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For this you can use the gem gastly.