chrome开启headless模式以及代理


1

chrome.exe google-chrome-stable --disable-gpu --remote-debugging-port=9222 --headless -remote-debugging-address=0.0.0.0 --disable-xss-auditor --no-sandbox --disable-web-security

2 关闭浏览器情况下,开启有界面浏览器

chrome.exe --disable-gpu --remote-debugging-port=9222 --user-data-dir=remote-profile -remote-debugging-address=0.0.0.0 --disable-xss-auditor --no-sandbox --disable-web-security

3

chrome.exe google-chrome-stable --disable-gpu --remote-debugging-port=9222 -remote-debugging-address=0.0.0.0 --disable-xss-auditor --no-sandbox --disable-web-security
self.browser = self.loop.run_until_complete(
       pyppeteer.launch(executablePath="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", headless=False, dumpio=True, ignoreHTTPSErrors=True,
                        args=['--disable-gpu', '--no-sandbox', '--disable-web-security',
                              '--disable-xss-auditor', '--proxy-server=127.0.0.1:8080']))


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM