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"])
Metadata
Release files for bardclient 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bardclient-1.1.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bardclient-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.1 kB
Release files / bardclient-1.1.tar.gz
| Download URL | bardclient-1.1.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c63fd68b3f475a0f9b4acb5d2e7ab81db9b80d63903d6f2e2cdf2e4e2ee647f6
|
|
BLAKE2b-256 checksum How to use checksums |
44607dbc641b519a36b3f9f5c5c80217d0623386db00726f2ec4470636972473
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.5
|
Release files / bardclient-1.1-py3-none-any.whl
| Download URL | bardclient-1.1-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2298693d8876ae1c81dff8dc2bd1da6dca09e1d4213c67168fa9dd69ba0c6815
|
|
BLAKE2b-256 checksum How to use checksums |
0a8264577843d5a7086bf39f8cd2c8a81941aa0ff25379c0280705a7bb7fc6d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.5
|