Skip to main content

Google Bard API in Python

Project description

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 ?")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

googlebardpy-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

googlebardpy-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file googlebardpy-0.1.0.tar.gz.

File metadata

  • Download URL: googlebardpy-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.11 Linux/6.3.0

File hashes

Hashes for googlebardpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 002fdfd9d7eb7a526d4478d56873b3c6e713de9c58252a5fc49eec2d328d677e
MD5 f441531942c55f8a4c7a5a840a9bcbf6
BLAKE2b-256 59da91e8c645f44cf98b03d10d40cd5203dd59134341cca6ae37f92aedf0e2e4

See more details on using hashes here.

File details

Details for the file googlebardpy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: googlebardpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.11 Linux/6.3.0

File hashes

Hashes for googlebardpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12e65fdfe99392cbb5e8f93572340b757cd9d7aa83391316eaea3a1527995ef2
MD5 9cd48e9c5238f0c4012e190c6e041859
BLAKE2b-256 a84030a6440d5ceec49fc268710705b89e654fc854d9b8754850228deaf64892

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page