Some real world examples of using github.com/mafredri/cdp for browser automation
- go 1.12+
- Install dependencies with
go get -u
- Run ./bin/git/init-hooks.bash to enable hooks for gofmt and golint
go test -v -race ./...
Get the cookies from Chrome for a specific domain:
go run cmd/examples/main.go getcookies -d=domain
Get all cookies from Chrome:
go run cmd/examples/main.go getcookies
Related source: ./src/cookies