Skip to content

Instantly share code, notes, and snippets.

Last active December 11, 2015 04:28
What would you like to do?
How to capture screenshots of website using 'crawl' and 'capture'


First install 'crawl' and 'capture'

npm install -g crawl
npm install -g capture

Note: 'capture' requires PhantomJS. I generaly install using homebrew on a Mac.

Crawl Site

You first need to crawl your site and produce a sitemap of every page found within the domain. Use 'crawl' to do this:

crawl -j > sitemap.json

Capture Screenshots

Next you can capture screenshots using 'capture'

capture -s sitemap.json -o ./output-directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment