Reverse engineering of Google's Bard chatbot
Project description
Bard ![](https://pypi-camo.freetls.fastly.net/e65efc4e1779ba403d7cef3b9090065905dd606e/68747470733a2f2f7777772e677374617469632e636f6d2f6c616d64612f696d616765732f66617669636f6e5f76315f31353031363063646466663766323934636533302e737667)
Reverse engineering of Google's Bard chatbot API
Installation
$ pip3 install --upgrade GoogleBard
Authentication
Go to https://bard.google.com/
- F12 for console
- Copy the values
- Session: Go to Application → Cookies →
__Secure-1PSID
. Copy the value of that cookie.
- Session: Go to Application → Cookies →
Usage
$ python3 -m Bard -h
usage: Bard.py [-h] --session SESSION
options:
-h, --help show this help message and exit
--session SESSION __Secure-1PSID cookie.
Developer Documentation
from os import environ
from Bard import Chatbot
token = environ.get("BARD_TOKEN")
chatbot = Chatbot(token)
chatbot.ask("Hello, how are you?")
Credits:
- discordtehe - Derivative of his original reverse engineering
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
GoogleBard-0.0.7.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for GoogleBard-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3159e3ac0b8ea6144d246af794ff42f8b2045a3c09bf3954138ba50db18b5a9 |
|
MD5 | 703e1915316656d5470c7a13e9b155b2 |
|
BLAKE2b-256 | 6c581cd1f573323c870d01697afc32dad5e0dbacbb609cc24a426dafafb17dfb |