Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Selenium をシークレット モードでブラウザを開く方法に関するドキュメントが見つからないようです。
ブラウザでカスタム プロファイルをセットアップする必要がありますか?
注: chrome_options は非推奨になりました。chrome_options の代わりに「options」を使用できます
from selenium import webdriver options = webdriver.ChromeOptions() options.add_argument("--incognito") driver = webdriver.Chrome(options=options) driver.get('https://google.com')