You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see you are using the load function. The function loads cookies from all available browsers in your system into a single CookieJar. Thus if the exact cookie say __Secure-1PSID exists on two browsers say chrome and firefox another will replace one. I suggest using the function for the browser you are trying to load from to avoid it. For example for Chrome use:
Another scenario (although less likely) is that the cookie is very new and hasn't been updated on the disk yet. As browser-cookie3 reads cookies from disk. It is unable to produce the latest cookie.
cookies = list(browser_cookie3.load(domain_name = ".google.com"))
main_cookie = [cookie for cookie in cookies if cookie.name == "__Secure-1PSID"][0]
This is the code and the cookie value obtained in browser console differs entirely from the one obtained via code
The text was updated successfully, but these errors were encountered: