Nonstop Pajama Models

    grabzit

    3.5.2 • Public • Published

    GrabzIt 3.5

    This library allows you to programmatically convert HTML and web pages into images, DOCX documents, 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

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

    Install

    npm i grabzit

    Homepage

    grabz.it

    DownloadsWeekly Downloads

    134

    Version

    3.5.2

    License

    MIT

    Unpacked Size

    54.7 kB

    Total Files

    4

    Last publish

    Collaborators

    • grabzit