Python SDK/API for reverse engineered Google Bard.
Reverse engineering of Google's Bard chatbot API
$ pip3 install --upgrade GoogleBard
Go to https://bard.google.com/
- F12 for console
- Copy the values
- Session: Go to Application → Cookies →
__Secure-1PSID
and__Secure-1PSIDTS
. Copy the value of those cookie.
- Session: Go to Application → Cookies →
$ python3 -m Bard -h usage: Bard.py [-h] --session <__Secure-1PSID> --session_ts <__Secure-1PSIDTS> options: -h, --help show this help message and exit --session --session_ts pass two cookies
$ export BARD_QUICK="true"
$ export BARD__Secure_1PSID="<__Secure-1PSID>"
$ export BARD__Secure_1PSIDTS="<__Secure-1PSIDTS>"
$ python3 -m Bard
Environment variables can be placed in .zshrc.
from https://github.com/acheong08/Bard
No comments:
Post a Comment