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']))
posted @ 2019-09-06 11:38  huim  阅读(1675)  评论(0编辑  收藏  举报