Skip to main content

A simple reverse engineering of google's bard implements by python3

Project description

bardclient

A simple reverse engineering of google's bard implements by python3

Installation

$ pip3 install --upgrade bardclient

Authentication

Go to https://bard.google.com/

  • F12 for console
  • Copy the cookie value

Path: Application -> Cookies -> __Secure-1PSID, Copy the value of the cookie.

Usage

Implementation

from os import environ

from bardclient import BardClient

bard_token = environ.get('BARD_TOKNE')
bot = BardClient(bard_token)
res_message = bot.ask('Hi, how are you?')

print(res_message["content"])

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

bardclient-1.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bardclient-1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file bardclient-1.0.tar.gz.

File metadata

  • Download URL: bardclient-1.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for bardclient-1.0.tar.gz
Algorithm Hash digest
SHA256 512d898ff2cef156f596dcad335e0f9d866ade14499dede0ee91ffcffc56f558
MD5 db3ddd6c34ce38dccec3a95ad4c75e95
BLAKE2b-256 30b790f2976478b35a69840dfb3bafbdc7545f68c8c542161d7f144f2de765ab

See more details on using hashes here.

File details

Details for the file bardclient-1.0-py3-none-any.whl.

File metadata

  • Download URL: bardclient-1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for bardclient-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7ab825d2a86b64aa6c8a1fbd5e048485eae419750d15bb296ebb1eff23e5ec1
MD5 5cc6b8c7a2619cb20f6eceb68542c83a
BLAKE2b-256 b424444f5279e0c54c864a6f3a7379fdd37f4c6faef4ac3955219ef3fd011460

See more details on using hashes here.

Supported by

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