why don't just use chrome/chromium without puppeteer?<p>google-chrome --headless --screenshot <a href="http://site.com" rel="nofollow">http://site.com</a><p>It's a one line command.
Very cool! I made something similar a while ago:
<a href="https://github.com/fabrik42/responsive_mockups" rel="nofollow">https://github.com/fabrik42/responsive_mockups</a><p>My version is less configurable but wraps the screenshots in some beautiful mockups :)
Cool, I was just looking for something like this. A useful feature would be the possibility to screenshot a specific element only instead of the whole page (using something like <a href="https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#elementhandlescreenshotoptions" rel="nofollow">https://github.com/GoogleChrome/puppeteer/blob/master/docs/a...</a> ). Also an option to set the ouput filename is a must for scripting !
I needed to crawl sitemaps, create snapshots in three device sizes (mobile, tablet and desktop) and compare my snapshots with their previous versions. I ended up creating this tool <a href="https://github.com/raminv80/webTimeMachine" rel="nofollow">https://github.com/raminv80/webTimeMachine</a> it is not perfect but does the job. I might continue improving it if others find it useful.
Maybe the interface could be simplified: you're always going to give it URLs so you can allow those as non-option arguments (also can you pass it multiple URLs?).
Nice small project. This uses a chrome-headless on the background to perform the screenshot, isn't it?<p>Also, you have included a .DS_Store file in your repository.
Nice. I made something almost exactly like this using puppeteer as well except it took screenshots of all the pages of a site. It crawled first getting all site pages, then created a JSON config file that would be used to take screenshots with. I should really throw this up on GitHub as well.<p>Funnily enough, I called mine: Screenshotr
A similar thing I wrote one evening lol <a href="https://github.com/Weston-Boldt/webscrot" rel="nofollow">https://github.com/Weston-Boldt/webscrot</a>