Add README and goosehints
This commit is contained in:
18
.goosehints
Normal file
18
.goosehints
Normal 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 browser’s 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).
|
||||
Reference in New Issue
Block a user