chrome开启无界面浏览模式

参考地址

https://developers.google.com/web/updates/2017/04/headless-chrome

 

chrome \
  --headless \                   # Runs Chrome in headless mode.
  --disable-gpu \                # Temporarily needed if running on Windows.
  --remote-debugging-port=9222 \

设置代理协议,启动时候添加参数--proxy-server=http://202.20.16.82:10152


页面加载后调试地址:http://10.208.53.120:9222/devtools/inspector.html?ws=10.208.53.120:9222/devtools/page/BB5581E717F56C6E1008DC59720D37C7&remoteFrontend=true 替换其中的ip地址和tab id值

You May Also Like

About the Author: daidai5771

发表评论

电子邮件地址不会被公开。 必填项已用*标注