browsercookie

package module
v0.0.0-...-687d888 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 13 Imported by: 0

README

go-browsercookie

Install

go get -u github.com/onyas/go-browsercookie

Usage


package main

import (
	"github.com/onyas/go-browsercookie"
	"log"
)

func main() {
	cookieJar, error := browsercookie.Chrome("https://google.com")
	if error != nil {
		log.Fatal(error)
	}

	log.Println(cookieJar)
}

Thanks/references

It's a Wrapper for zellyn/kooky, all the glory should belongs to @zellyn

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chrome

func Chrome(cookileUrl string) (http.CookieJar, error)

func ReadChromeCookies

func ReadChromeCookies(filename string, domainFilter string, nameFilter string, expireAfter time.Time) ([]*http.Cookie, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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