Skip to content

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

License

Notifications You must be signed in to change notification settings

ydg119/bardclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages