Navigate to a chat domain page

This commit is contained in:
2025-02-17 11:51:29 -08:00
parent 46fa838cf6
commit 75948c5271

View File

@@ -29,6 +29,10 @@ print("\nIMPORTANT: Once you are logged in and have confirmed the cookies (or ju
print("press Enter here. (Remember: to keep the validity of these cookies, close the browser soon!)") print("press Enter here. (Remember: to keep the validity of these cookies, close the browser soon!)")
input("Press Enter to extract cookies...") input("Press Enter to extract cookies...")
# Navigate to some invalid URL on chat.google.com. This way we won't be redirected back to a
# mail.google.com page and this allows us to extract the correct cookies.
driver.get("https://chat.google.com/u/0/mole/world")
# Get all cookies # Get all cookies
all_cookies = driver.get_cookies() all_cookies = driver.get_cookies()