Capture Screenshots in Ruby


/ Published in: Ruby
Save to your folder(s)

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!


Copy this code and paste it in your HTML
  1. require 'grabzitclient'
  2.  
  3. grabzItClient = GrabzItClient.new("YOUR APPLICATION KEY", "YOUR APPLICATION SECRET")
  4. grabzItClient.save_picture("http://www.google.com", "images/test.jpg")

URL: http://grabz.it/api/ruby/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.