I'm trying to load cookies that already exist (they are in C:\Users\nicoc\AppData\Local\Google\Chrome\User Data\Default\Cookie) into a Selenium driver instance.
Now, I've read the fact that I can load cookies with the function driver.get_cookies() and save them with pickle but I don't want to launch a Selenium driver session and save the cookies, I need to load the already existing ones in some ways and attach them to a new Selenium driver session with something like:
cookies = pickle.load(cookiesfile)
for cookie in cookies:
driver.add_cookie(cookie)
I've also checked this answer https://stackoverflow.com/a/63158404/7848740 where he loads a .pkl file containing the cookies. Unfortunately, Google Chrome cookies have no format and, opening with a text editor, seems to be an SQLite3 database
I've also tried browsercookie https://pypi.org/project/browsercookie/ but it's not compatible with the latest Chrome versions