Files
google-cookie-retrieval/.goosehints
2025-02-17 11:13:05 -08:00

19 lines
1.4 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Summary of the Program and Its Architecture:
1. README.md:
• Introduces the purpose: to support the Mautrix Google Chat Authentication Process.
• Details manual steps to log in to https://chat.google.com, inspect browser cookies (COMPASS, SSID, SID, OSID, HSID) using Developer Tools, and form them into a JSON payload that is then sent to a bot to enable automated portal creation in chats.
2. selenium_cookie_extractor_json.py:
• Uses Selenium with Chrome in incognito mode to open https://chat.google.com.
• The user is guided to log in and verify the necessary cookies via the browsers Developer Tools.
• Once the user presses Enter, the script extracts all cookies, filters for the target cookies (with special handling for the COMPASS cookie by selecting the one with path "/" if present), and then outputs a JSON object with these cookie values.
• This JSON output can be used in further automation steps with a bot.
3. flake.nix:
• Provides a Nix development shell configuration which ensures a reproducible environment.
• Specifies dependencies: Python3, Selenium, and Chromedriver, ensuring that the proper tools are available in the development environment.
Overall Architecture:
• The repository is architected around a single-purpose automation tool to simplify cookie extraction for Google Chat authentication, with supporting documentation (README.md) and a reproducible development environment (flake.nix).