Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bdombro/chrome-bulk-screenshot

📸 This package will create pdf snapshots of web pages in bulk using Puppeteer (aka headless Chromium). 📷
https://github.com/bdombro/chrome-bulk-screenshot

batch bulk chrome headless nodejs puppeteer screengrab screenshot snapshot

Last synced: 2 months ago
JSON representation

📸 This package will create pdf snapshots of web pages in bulk using Puppeteer (aka headless Chromium). 📷

Awesome Lists containing this project

README

        

# 📸 chrome-bulk-screenshot 📷

## About
This package will take pdf snapshots of rendered web pages in bulk using Puppeteer (aka headless Chromium).

## Why?
Using the chrome cli over many URLs is way CPU expensive and slow, because you must open a new browser per URL. This app opens and re-uses a single browser instance, thereby limiting to a single CPU AND with less CPU effort.

## Caveats
1. Takes about 2 seconds per snapshot per screen
1. Not quite pixel perfect.

## Requirements
1. Requires Node v7.x or higher

## Installation
```
npm install -g chrome-bulk-screenshot
or
yarn global add chrome-bulk-screenshot
```

Note: Yarn isn't working right now for me because install hangs on a dependency (Puppeteer). If you have trouble with yarn, please try npm. Suggestions are also appreciated!

## Usage
```
chrome-bulk-screenshot [options]

Options
--rainbow, -r Include a rainbow
--init, -i Copy demo config to your current working directory

Examples
$ chrome-bulk-screenshot --init
🌈 unicorns 🌈
$ chrome-bulk-screenshot --config=config.yml
...
```

Then check the 'out' folders.

## Roadmap

##### Ideas
1. Upload direct to cloud, like S3
1. Easy sharing
1. Get in the cloud -- web portal, cloud processing and scheduling
1. Desktop app

##### Queued
1. None right now

##### In-Process
1. Upkeep, bugfixes and maintenance

## Contributing
Star me! And/or open up a pull request or email me for ideas (see package.json for email)

## Related
1. [headless-bulk-screenshot](https://github.com/rustyy/headless-bulk-screenshot) - Opens a new browser instance per snapshot -- less CPU effecient.

## License (MIT)

```
WWWWWW||WWWWWW
W W W||W W W
||
( OO )__________
/ | \
/o o| MIT \
\___/||_||__||_|| *
|| || || ||
_||_|| _||_||
(__|__|(__|__|
```

Copyright (c) 2017 Brian Dombrowski

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.