From 9ce5c399dc394a8f14f1c07edbd8c649aa42cd6e Mon Sep 17 00:00:00 2001 From: kev Date: Fri, 27 Dec 2024 17:48:23 +0800 Subject: [PATCH] update headless-shell --- headless-shell/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/headless-shell/README.md b/headless-shell/README.md index d5c4847..1af5309 100644 --- a/headless-shell/README.md +++ b/headless-shell/README.md @@ -6,4 +6,21 @@ docker.io/chromedp/headless-shell, containing Chrome's headless-shell -- a slimmed down version of Chrome that is useful for driving, profiling, or testing web pages. +```bash +$ docker compose up -d + +$ curl 127.0.0.1:9222/json/version +{ + "Browser": "Chrome/131.0.6778.205", + "Protocol-Version": "1.3", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.6778.205 Safari/537.36", + "V8-Version": "13.1.201.19", + "WebKit-Version": "537.36 (@81b36b9535e3e3b610a52df3da48cd81362ec860)", + "webSocketDebuggerUrl": "ws://172.16.1.48:9222/devtools/browser/6a8e5f93-9958-4fe6-8455-9a32e30d3bfe" +} +``` + +> Read more about [devtools-protocol][2]. + [1]: https://github.com/chromedp/docker-headless-shell +[2]: https://chromedevtools.github.io/devtools-protocol/