





















C:\Program Files\Google\Chrome\Application\chrome.exe --user-data-dir=D:\demo_app\dist\demo_app\data\user_data_dir --no-first-run --no-default-browser-check --remote-debugging-port=9222 --remote-allow-origins=* https://www.baidu.com/index.php
Windows CDP 远程调试:从踩坑到局域网打通 - 进化概率论
[
{
"description": "",
"devtoolsFrontendUrl": "https://chrome-devtools-frontend.appspot.com/serve_rev/@39b29242bd61cdd8cf7d5c293800d97c4ac403d6/inspector.html?ws=127.0.0.1:9222/devtools/page/E0E0B6DB6E243056D67085DFD2F85D8E",
"id": "E0E0B6DB6E243056D67085DFD2F85D8E",
"title": "Omnibox Popup",
"type": "browser_ui",
"url": "chrome://omnibox-popup.top-chrome/",
"webSocketDebuggerUrl": "ws://127.0.0.1:9222/devtools/page/E0E0B6DB6E243056D67085DFD2F85D8E"
},
{
"description": "",
"devtoolsFrontendUrl": "https://chrome-devtools-frontend.appspot.com/serve_rev/@39b29242bd61cdd8cf7d5c293800d97c4ac403d6/inspector.html?ws=127.0.0.1:9222/devtools/page/7721C4E783A34659160D88951B811447",
"id": "7721C4E783A34659160D88951B811447",
"title": "127.0.0.1:9222",
"type": "page",
"url": "http://127.0.0.1:9222/json",
"webSocketDebuggerUrl": "ws://127.0.0.1:9222/devtools/page/7721C4E783A34659160D88951B811447"
},
{
"description": "",
"devtoolsFrontendUrl": "https://chrome-devtools-frontend.appspot.com/serve_rev/@39b29242bd61cdd8cf7d5c293800d97c4ac403d6/inspector.html?ws=127.0.0.1:9222/devtools/page/8BC6BD3D98A9099983EA7D7DDAD709BB",
"faviconUrl": "https://www.baidu.com/favicon.ico",
"id": "8BC6BD3D98A9099983EA7D7DDAD709BB",
"title": "百度一下,你就知道",
"type": "page",
"url": "https://www.baidu.com/index.php",
"webSocketDebuggerUrl": "ws://127.0.0.1:9222/devtools/page/8BC6BD3D98A9099983EA7D7DDAD709BB"
},
{
"description": "",
"devtoolsFrontendUrl": "https://chrome-devtools-frontend.appspot.com/serve_rev/@39b29242bd61cdd8cf7d5c293800d97c4ac403d6/inspector.html?ws=127.0.0.1:9222/devtools/page/213A74CEA917FE3AFB95BB68FA36040F",
"id": "213A74CEA917FE3AFB95BB68FA36040F",
"title": "Omnibox Popup",
"type": "browser_ui",
"url": "chrome://omnibox-popup.top-chrome/omnibox_popup_aim.html",
"webSocketDebuggerUrl": "ws://127.0.0.1:9222/devtools/page/213A74CEA917FE3AFB95BB68FA36040F"
}
]
ws msg 执行js
{
"id": 1234,
"method": "Runtime.evaluate",
"params": {
"expression": "document.documentElement.outerHTML",
"returnByValue": true
}
}
页面数据
document.documentElement.outerHTML
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。