Google Bard Python API
Go to file
0xMRTT 6cbec15350
bard: add codeberg on readme
2023-05-01 13:10:33 +02:00
dist bard: initial commit 2023-05-01 13:09:35 +02:00
googlebardpy bard: initial commit 2023-05-01 13:09:35 +02:00
tests bard: initial commit 2023-05-01 13:09:35 +02:00
README.md bard: add codeberg on readme 2023-05-01 13:10:33 +02:00
poetry.lock bard: initial commit 2023-05-01 13:09:35 +02:00
pyproject.toml bard: initial commit 2023-05-01 13:09:35 +02:00

README.md

Google Bard

Installation

Pypi

pip install googlebardpy

Codeberg

pip install --index-url https://codeberg.org/api/packages/Bavarder/pypi/simple/ googlebardpy

Usage

Get the token

  1. Go to bard.google.com
  2. Open developer tools
  3. Go to Application
  4. Go to Cookies
  5. Copy the content of __Secure-1PSID

Use the chatbot

secure_1psid = "..."
chat = BardChat(secure_1psid)
chat.ask("Hello, who are you ?")