browserutils / kooky

Go code to read cookies from browser cookie stores.
MIT License
204 stars 41 forks source link

Chrome: column index out of bound #44

Closed alswl closed 3 years ago

alswl commented 3 years ago

OS: macOS 11.2.3 (20D91) Browser: Google Chrome: Version 89.0.4389.114 (Official Build) (x86_64) library version: github.com/zellyn/kooky v0.0.0-20201108220156-bec09c12c339

testing codes:

func TestBrowserCookiesReading(t *testing.T) {
    dir, _ := os.UserConfigDir() // "/<USER>/Library/Application Support/"
    cookiesFile := dir + "/Google/Chrome/Default/Cookies"
    cookies, err := chrome.ReadCookies(cookiesFile)
    if err != nil {
        log.Fatal(err)
    }
    for _, cookie := range cookies {
        fmt.Println(cookie)
    }
}

output:

=== RUN   TestBrowserCookiesReading
2021/04/08 16:57:05 column index out of bound
zellyn commented 3 years ago

Hopefully @barnardb's #42 and #43, just merged, will fix this.

alswl commented 3 years ago

Thanks, it works for me.