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