webkit2png
webkit2png copied to clipboard
Cookie support
Taking a full size screenshot of a web app that requires login could be supported via a cookies file. The user would log in via their browser, then tell webkit2png to use the cookies file as a source, or perhaps specify which browser's cookies to use as a source for ease of use to the end user.
Safari stores its cookies in a plist database in: ~/Library/Cookies/Cookies.plist
Google Chrome stores its cookies in a sqlite database in: ~/Library/Application Support/Google/Chrome/Default/Cookies
Firefox stores its cookies in a sqlite database in a non-guessable path: ~/Library/Application Support/Firefox/Profiles/????????.default/cookies.sqlite
This would be fantastic. I've wanted a way to automate screenshots as I work on apps, and the apps always require authentication. I haven't found a solution that works yet.
this would be great.
Hi guys,
did you ever manage to hack on this script so that it can work with login?
If it helps anyone, I've found a decent workaround for this is to save the page down as a Webarchive, and then take the screenshot from the Webarchive file.
By no means a fix, but for anyone in a pinch, this might be handy.
I would need a parameter to skip HTTP-Logins (I need screens from some hundreds of websites). A little hack for this would be to set the timeout to a lower value.
this would be still awesome!
yeah this would be great
A limited workaround for certain websites, for instance:
webkit2png --debug https://github.com/login --delay=100
The webpage will show up, then you enter your credentials (with mouse paste). For the following executions, you will be already logged in and can use webkit2png as usual.
I think what you're all asking for here is support for specifying cookies - I can't think of any other sensible way we can support all the different login mechanisms used on the web.
#47 is a possible implementation.