Puppeteer-batch-screenshots
Make screenshots of your websites in batch.
Let's say you have to make 100 web page screenshots in a row daily. The most of CLI-enabled screenshot tools allow you to make one single screenshot at a time, which means every time the new Node + Chrome instance gets initialised. This tool saves a good amount of time by batching these tasks.
Tool based on puppeteer.
Installation and Usage:
npm i -g puppeteer-batch-screenshots
puppeteer-batch-screenshots config.json
alternatively you can install it as a local dependency
mkdir my-perfect-screenshoot-tool && cd my-perfect-screenshoot-tool
npm init -y
npm i puppeteer-batch-screenshots
node /node_modules/puppeteer-batch-screenshots/index.js config.json
Example config:
[
{
"width": 1440,
"height": 900,
"fullPage": false,
"emulate": "Nexus 4",
"auth" : "username;password",
"waitFor": 500,
"element": "#main",
"routes": [
{
"url": "http://example.com/1",
"output": "./screenshots/example-1-${new Date().toISOString()}.png"
}
]
}
]
License
This project is licensed under the MIT License