chrome开启headless模式以及代理

竺展
2023-12-01
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
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']))

转载于:https://www.cnblogs.com/huim/p/11473869.html

 类似资料: