-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cookie support #11
Comments
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:
The webpage will show up, then you enter your credentials (with mouse paste). |
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. |
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
The text was updated successfully, but these errors were encountered: