Skip to content

Instantly share code, notes, and snippets.

@kano4
Created March 3, 2012 01:14
Show Gist options
  • Select an option

  • Save kano4/1963287 to your computer and use it in GitHub Desktop.

Select an option

Save kano4/1963287 to your computer and use it in GitHub Desktop.
screenshot in Ruby
#!/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
@mgrachev

mgrachev commented Jan 8, 2016

Copy link
Copy Markdown

For this you can use the gem gastly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment