If anyone's interested, I ported this into a Ruby Gem a couple of years back. I haven't given it too much love lately, but it should still be good/useful: http://github.com/jurisgalang/snapurl
This is probably the wrong forum but there is a mistake in the regex in the makeFilename method. In trying to detect https it will strip the first letter of any domain starting with s. Check it out:
Then there is the aviary.com browser plugin where you can get an image version of the website you are viewing and even upload it directly to host (and edit) it on their site:
I build a web service for this in my spare time: http://www.web2png.com . You can set up profiles where you select the resulting resolution of the screenshot and apply all sorts of effects like polaroid frame, drop shadows and stuff like this. Once created you get a special URL through which you can get screenshots of web sites using your specifications.
Do you think this may be worth $19 a month? I provide a jquery plugin which makes this all really easy..
Wouldn’t something like getting the actual video file (flv or h.264) be a simpler approach? I mean don’t you have to have some kind of sandboxing etc. since you are executing unknown code (swf)?
Oh, believe me, I'd love to. The difficulty, however, is that extracting H264 or FLV streams from embed codes is a process that every video host is actively attempting to thwart--and there's some 15,000 of them, and one of me. :)
wkhtmltopdf renders web pages to PDF using WebKit and works great on Windows, for what it's worth. It's just one more step to go from PDF to PNG. The results were great when I used it, but I'm not sure how it deals with e.g. Flash.
http://cutycapt.sourceforge.net/