gookie

package module
v0.0.0-...-8437234 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

README

install

go get -u github.com/donkw/gookie

usage

chrome, err := gookie.NewChrome()
if err != nil {
  fmt.Printf("Error: %s\n", err)
  return
}
cookies, err := chrome.GetCookies(".baidu.com")
if err != nil {
  fmt.Printf("Error: %s\n", err)
  return
}
fmt.Printf("Cookies: %v\n", cookies)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChrome

func NewChrome() (*chrome, error)

NewChrome returns a new chrome struct

func NewChromeWith

func NewChromeWith(cf *Config) (*chrome, error)

Types

type Config

type Config struct {
	UserDataPath       string
	LocalStateFilePath string
	CookieFilePath     string
	AESGCMKey          []byte
	Version            string
}
type Cookie struct {
	Key   string
	Value string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL