https://peter.sh/experiments/chromium-command-line-switches/
chrome_options.add_argument('--user-agent=""') # 設置請求頭的User-Agent
chrome_options.add_argument('--window-size=1280x1024') # 設置瀏覽器分辨率(窗口大小)
chrome_options.add_argument('--start-maximized') # 最大化運行(全屏窗口),不設置,取元素會報錯
chrome_options.add_argument('--disable-infobars') # 禁用瀏覽器正在被自動化程序控制的提示
chrome_options.add_argument('--incognito') # 隱身模式(無痕模式)
chrome_options.add_argument('--hide-scrollbars') # 隱藏滾動條, 應對一些特殊頁面
chrome_options.add_argument('--disable-javascript') # 禁用javascript
chrome_options.add_argument('--blink-settings=imagesEnabled=false') # 不加載圖片, 提升速度
chrome_options.add_argument('--headless') # 瀏覽器不提供可視化頁面
chrome_options.add_argument('--ignore-certificate-errors') # 禁用擴展插件並實現窗口最大化
chrome_options.add_argument('--disable-gpu') # 禁用GPU加速
chrome_options.add_argument('–disable-software-rasterizer')
chrome_options.add_argument('--disable-extensions')
chrome_options.add_argument('--start-maximized')