mirror of
https://github.com/bellingcat/instagram-location-search.git
synced 2026-06-11 20:18:27 +03:00
Switch browser to Google Chrome from Chromium
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user