browser_cookie_query

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

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 11 Imported by: 0

README

Only supported temporarily macOS,theoretically,it supports all chromium browsers

valid browser : Edge Chrome

Installation

exec go get -u github.com/xywf221/browser-cookie-query

Usage

Query the cookie of Microsoft Edge browser github.com

queryEdge := NewBrowserCookieQuery("Microsoft Edge")
queryEdge.Init()
queryEdge.Query(".github.com")

Todo

  • Windows supported

Reference projects

pycookiecheat

gookies

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrowserCookieQuery

type BrowserCookieQuery struct {
	// contains filtered or unexported fields
}
Example
// use Chrome browser
queryChrome := NewBrowserCookieQuery("Chrome")
queryChrome.Init()              // Read SQLite and get key
queryChrome.Query(".baidu.com") //Query

// use Microsoft Edge browser
queryEdge := NewBrowserCookieQuery("Microsoft Edge")
queryEdge.Init()
queryEdge.Query(".baidu.com")
Output:

func NewBrowserCookieQuery

func NewBrowserCookieQuery(browserName string) *BrowserCookieQuery

func (*BrowserCookieQuery) Init

func (q *BrowserCookieQuery) Init() error

func (*BrowserCookieQuery) Query

func (q *BrowserCookieQuery) Query(host string) ([]*http.Cookie, error)

Jump to

Keyboard shortcuts

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