grabzit

3.5.4 • Public • Published

GrabzIt 3.5

This library allows you to programmatically convert HTML and web pages into images, DOCX documents, videos, PDF's, CSV's, spreadsheets, rendered HTML and JSON. Additionally GrabzIt allows you to convert online videos into animated GIF's. For more help please read our documentation.

It is usually best to place these files in their own directory.

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.url_to_image("http://www.google.com");
client.save("http://www.mysite.com/handler");

The handler then gets passed the following query string parameters:

  • id
  • customid
  • message
  • filename
  • format
  • targeterror

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);
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.5.480latest

Version History

VersionDownloads (Last 7 Days)Published
3.5.480
3.5.32
3.5.211
3.5.17
3.5.00
3.4.51
3.3.71
3.3.60
3.3.50
3.3.41
3.3.0-10
3.3.00
3.2.9-20
3.2.9-10
3.2.90
3.2.80
3.2.61
3.2.50
3.2.40
3.2.30
3.2.20
3.2.10
3.2.00
3.1.10
3.1.01
3.0.20
3.0.10
3.0.00
2.3.00
2.2.10
2.2.00
2.1.30
2.1.20
2.1.10
2.1.00
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i grabzit

Homepage

grabz.it

Weekly Downloads

105

Version

3.5.4

License

MIT

Unpacked Size

59.7 kB

Total Files

5

Last publish

Collaborators

  • grabzit