browserutils / kooky

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

add finder interface, rework chrome implementation, add examples #23

Closed srlehn closed 3 years ago

srlehn commented 3 years ago

This PR is in preparation for following browser implementations and adds:

type CookieStoreFinder interface {
    FindCookieStores() ([]CookieStore, error)
}
type CookieStore interface {
    ReadCookies(...Filter) ([]*Cookie, error)
    Browser() string
    Profile() string
    IsDefaultProfile() bool
    FilePath() string
    Close() error
}

grafik

roberChen commented 3 years ago

@srlehn Thanks for great works! @zellyn Can you take a look at this pr?