package
0.0.0-20250225225442-afbcfe5adc5b
Repository: https://github.com/chromedp/examples.git
Documentation: pkg.go.dev
# README
Using
Start a Chrome instance:
Using headless-shell
:
$ podman run --rm --detach --publish 9222:9222 docker.io/chromedp/headless-shell:latest
Alternately, using Google Chrome:
$ google-chrome-stable --remote-debugging-port=9222
Then, execute the script:
$ go run main.go
The remote URL can be specified using the -url
flag:
$ go run main.go -url ws://127.0.0.1:9222