Skip to content

Simple example

javascript
// import the module
const shotSnap = require("shotsnap");
// take screenshot
shotSnap.takeScreenshot({
  pageUrl: "https://google.com",
  saveFile: true,
  fileName: "test.png",
});

Result:

How it works? When you run this code this requests going to browser on cloud, its creates a new browser instance and take a screenshot. If you make too many requests you can be rate-limited.

Released under the MIT License.