pip install googlebardpy
pip install --index-url https://codeberg.org/api/packages/Bavarder/pypi/simple/ googlebardpy
- Go to bard.google.com
- Open developer tools
- Go to Application
- Go to Cookies
- Copy the content of
__Secure-1PSID
secure_1psid = "..."
chat = BardChat(secure_1psid)
chat.ask("Hello, who are you ?")