Add README and goosehints

This commit is contained in:
2025-02-17 11:13:05 -08:00
parent 16b59d20c0
commit 93b187b554
2 changed files with 48 additions and 0 deletions

18
.goosehints Normal file
View File

@@ -0,0 +1,18 @@
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).