chrome-bulk-screenshot

1.0.6 • Public • Published

📸 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
  2. 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
  2. Easy sharing
  3. Get in the cloud -- web portal, cloud processing and scheduling
  4. 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 - 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 bdombro@gmail.com

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.

Dependencies (5)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i chrome-bulk-screenshot

    Weekly Downloads

    0

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    28.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • bdombro