Bardapi
Pre-requirements
Google Bard Cookies
pip install bardapi
Get cookies
F12 (DevTools)
Application
Storage -> Cookies -> https://bard.google.com -> Search "1PSID" -> Cookie Value
__Secure-1PSID
__Secure-1PSIDTS
__Secure-1PSIDCC
Install packages
Code
Connect to Bard with cookies
New Session
Reusable Session
Ask with Promt
Convert answer to dictionary
Convert dictionary to dataframe
Ask about image
Text to Speech
Troubleshooting
Solution: Refresh browser, get cookie again and then rerun code
References
Last updated