chrome在centos下安装
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm 或者去https://www.google.cn/chrome这里下载 sudo yum install -y lsb sudo yum localinstall google-chrome-stable_current_x86_64.rpm
运行
/usr/bin/google-chrome --remote-debugging-port=9222 -remote-debugging-address=0.0.0.0 --headless --no-sandbox
"webSocketDebuggerUrl": "ws://10.41.41.159:9223/devtools/page/8E845F3F75A60B2E0C12FC43AF4BE7BB"
获取这个链接,然后就可以使用chrome devtool做浏览器自动化操作了
这里推荐使用chromedp操作chrome,golang的一个库,github上有开源版本