From 6cc32ce7e4bd68374e2c484d0eab6822243c765b Mon Sep 17 00:00:00 2001 From: Galen Reich <54807169+GalenReich@users.noreply.github.com> Date: Tue, 26 Mar 2024 13:41:32 +0000 Subject: [PATCH] Switch browser to Google Chrome from Chromium --- instagram_locations/instagram_locations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instagram_locations/instagram_locations.py b/instagram_locations/instagram_locations.py index b1ff3d8..6be0802 100644 --- a/instagram_locations/instagram_locations.py +++ b/instagram_locations/instagram_locations.py @@ -127,7 +127,7 @@ def get_insta_cookies(): options = webdriver.ChromeOptions() options.add_argument(f"user-data-dir={path}") options.add_argument(f"profile-directory=profile") - driver = webdriver.Chrome(options=options, service=ChromiumService(ChromeDriverManager(chrome_type=ChromeType.CHROMIUM).install())) + driver = webdriver.Chrome(options=options, service=ChromiumService(ChromeDriverManager(chrome_type=ChromeType.GOOGLE).install())) driver.get("https://www.instagram.com/") # Check that there is cookie with name sessionid (mean we logged in) cookies = driver.get_cookies()