Socket
Socket
Sign inDemoInstall

grabzit

Package Overview
Dependencies
0
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

grabzit

Automatically convert HTML or URL's into images, DOCX, videos, rendered HTML or PDF documents. Additionally convert online videos into animated GIF's or convert HTML tables to CSV.


Version published
Maintainers
1
Weekly downloads
192
decreased by-17.24%

Weekly downloads

Readme

Source

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

Keywords

FAQs

Last updated on 11 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc