Over a million developers have joined DZone.

Want to Capture Screenshots in Ruby?


Use this Gem to programmatically take screenshots of websites with this completely open source and free library. We have also provided easy-to-follow online tutorials and sample applications to help you set up GrabzIt as quickly as possible.

First run:

gem install grabzit

Then register a new account on http://grabz.it to get your application key and application secret.

Then use the code as shown below!

    require 'grabzitclient'
    grabzItClient = GrabzItClient.new("YOUR APPLICATION KEY", "YOUR APPLICATION SECRET")
    grabzItClient.save_picture("http://www.google.com", "images/test.jpg")

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}