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
Release history Release notifications | RSS feed
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.1.tar.gz
(6.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bardclient-1.1.tar.gz.
File metadata
- Download URL: bardclient-1.1.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c63fd68b3f475a0f9b4acb5d2e7ab81db9b80d63903d6f2e2cdf2e4e2ee647f6
|
|
| MD5 |
e33509c4d22d4dd177388af0026c6201
|
|
| BLAKE2b-256 |
44607dbc641b519a36b3f9f5c5c80217d0623386db00726f2ec4470636972473
|
File details
Details for the file bardclient-1.1-py3-none-any.whl.
File metadata
- Download URL: bardclient-1.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2298693d8876ae1c81dff8dc2bd1da6dca09e1d4213c67168fa9dd69ba0c6815
|
|
| MD5 |
9d9970bedf4527a6f8011513673f9b8a
|
|
| BLAKE2b-256 |
0a8264577843d5a7086bf39f8cd2c8a81941aa0ff25379c0280705a7bb7fc6d5
|