Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 424 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 424 Bytes

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-protocol=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