GrabzIt 0.0.5 (Alpha)
This software allows you to programmatically take screenshots of websites.
Its usually best to place these files in thier own directory.
Note this is very much in alpha and currently has no dedicated documentation, however some will be coming soon. We released the alpha version so people can use it and suggest and improvements.
Before the package can be used you must register to get your application key and secret. Once you have this you can take a screenshot like so:
var grabzit = require("grabzit");
var client = new grabzit("YOUR APPLICATION KEY", "YOUR APPLICATION SECRET");
client.set_image_options("http://www.google.com");
client.save({"callBackUrl":"http://www.mysite.com/handler"});
The handler then gets passed the following query string parameters:
- id
- customid
- message
- filename
- format
These query string parameters can be used to edit and save the screenshot, so in the handler something like this could be used:
var grabzit = require("grabzit");
var client = new grabzit("YOUR APPLICATION KEY", "YOUR APPLICATION SECRET");
client.get_result(id, function(err, result){
file.writeFile('test.jpg', result);
});