kooky icon indicating copy to clipboard operation
kooky copied to clipboard

Is it possible to scan for cookies in none default Chromium profiles?

Open PolicyPuma4 opened this issue 4 years ago • 2 comments

I use multiple profiles in Edge for work. I seem to be unable to fetch cookies from my none default work profile. Is this possible with this package?

PolicyPuma4 avatar May 20 '21 05:05 PolicyPuma4

I've just come across this issue with a little helper application I made, which I am gutting in order to use the kooky package (to support multiple browsers): while some user's cookies are stored in ~/.config/google-chrome/Default/Cookies, some other users' cookies are stored in ~/.config/google-chrome/Profile 1/Cookies. I cannot explain the difference as I have no control over or knowledge of the users computers, but being able to look in more than one place would be extremely useful.

vaughany avatar Aug 09 '22 15:08 vaughany

You can use kooky.FindAllCookieStores() while registering only the chrome cookie finder: import _ "github.com/zellyn/kooky/browser/chrome" this should locate all chrome profiles, which you then can filter for the one you want to use.

Or if you want to read a specific file, then load it with the browser specific ReadCookies() function: chrome.ReadCookies().

srlehn avatar Aug 09 '22 21:08 srlehn