4 ms·
That is pretty neat. Would it be giving it away if I asked how you generated the screenshots?
by mikelbring 16y ago
That is pretty neat. Would it be giving it away if I asked how you generated the screenshots?
- zalew 16y agof.ex. like this python webkit2png.py -x -o hn.png http://news.ycombinator.com/ http://news.ycombinator.com/ http://www.alexezell.com/code/webkit2png.txt http://www.alexezell.com/code/webkit2png.txt
- daverecycles 16y agoNice!
- uggedal 16y agoMore up to date version of webkit2png: https://github.com/AdamN/python-webkit2png https://github.com/AdamN/python-webkit2png There's also an OS X version available: https://github.com/paulhammond/webkit2png/ https://github.com/paulhammond/webkit2png/
- daverecycles 16y agoThanks. There's a number of tools to generate screenshots, including browser automation (sometimes used for testing) and third-party APIs. I'm using the WebThumb API right now: http://webthumb.bluga.net/home http://webthumb.bluga.net/home If you want to build your own, you could use Watir or even shell scripting to put together a sequence that opens a browser, takes a screenshot, closes a browser, and crops the screenshot, etc.
- hugs 16y agoAt Sauce Labs, we use a combination of the Selenium API for taking screenshots and Castro for recording movies of browser pages. Things get fun when you can click button, type text into fields, or execute arbitrary JavaScript between screenshots.