Launch Chrome Logged In Automatically With Python Selenium!

Published: 24 September 2024
on channel: Tiago Bolado
3,079
51

For Linux: "user-data-dir=/home/your-username/.config/google-chrome"
For MacOS: "user-data-dir=/Users/your-username/Library/Application Support/Google/Chrome"
----------------------------------------------------------------
from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument(r'user-data-dir=C:\Users\your-username\AppData\Local\Google\Chrome\User Data')
driver = webdriver.Chrome(options=options)
driver.maximize_window()

driver.get("https://www.google.com")


On this page of the site you can watch the video online Launch Chrome Logged In Automatically With Python Selenium! with a duration of hours minute second in good quality, which was uploaded by the user Tiago Bolado 24 September 2024, share the link with friends and acquaintances, this video has already been watched 3,079 times on youtube and it was liked by 51 viewers. Enjoy your viewing!