27 ms·
paraschopra mentioned PhantomJS for doing the same thing at couple of days ago http://news.ycombinator.com/item?id=2758438 http://news.ycombinator.com/item?id=2
by arkitaip 15y ago
paraschopra mentioned PhantomJS for doing the same thing at couple of days ago
http://news.ycombinator.com/item?id=2758438 http://news.ycombinator.com/item?id=2758438
- owyn 15y agoPhantomJS is great, although there are some bugs in the WebKit embedded inside QT because it's a bit old, it has the advantage of supporting flash plugins and it can do screen caps. I'm using it for a project now.
- paulirish 15y agocan you share your code for doing the screencaps? there are a few posts about it online but would love more detail on the setup.
- owyn 15y agoIt's a one liner. Once a page is loaded into the browser: page.render(path_to_output); I think it can save in PDF, GIF and PNG formats (it checks the extension on the filename to determine format)