dsdanielpark / Bard-API

The unofficial python package that returns response of Google Bard through cookie value.
https://pypi.org/project/bardapi/
MIT License
5.33k stars 529 forks source link

Bard __SECURE-1PSID does not match #269

Closed odgtr closed 8 months ago

odgtr commented 8 months ago

Hi, i'm encountering this issue where I'm pressing F12, going into cookies and bard, than my __SECURE-1PSID is just weird characters. it doesn't even include a dot at the end.

Here's what it looks like (middle part is censored) - g.a000fghkDGuKkDhA7ZG2aOHPl8eS6JPgxwXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX19UgRoVAUF8yKoTfj46F5jgzNp9WaAFST4P0076

I've tried logging off and logging on again, tried switching accounts/browsers/network but none worked. my token is in this weird character format. What can I do to get my old token format back?

dsdanielpark commented 8 months ago

The errors from similar users have been reported, so starting from version 0.1.39, we have changed "assrt" to "print" in order to allow receiving cookie values that do not end with a single dot.

We are still unsure if any rules regarding cookie values for users from any specific country or region have been altered.

If bardapi does not function properly with the mentioned cookie value, please try confirming with three or more different cookie values using multi-cookie or similar methods and kindly report the issues. Thank you.

261

dsdanielpark commented 7 months ago

[NOTICE] Please, go to Gemini-API https://github.com/dsdanielpark/Gemini-API

PyPI

Gemini Icon Google - Gemini API

A unofficial Python wrapper, python-gemini-api, operates through reverse-engineering, utilizing cookie values to interact with Google Gemini for users struggling with frequent authentication problems or unable to authenticate via Google Authentication.

Collaborated competently with Antonio Cheong.

What is Gemini?

[Paper] [Official Website] [Official API] [API Documents]

Gemini is a family of generative AI models developed by Google DeepMind that is designed for multimodal use cases. The Gemini API gives you access to the Gemini Pro and Gemini Pro Vision models. In February 2024, Google's Bard service was changed to Gemini.


Installation

pip install python-gemini-api
pip install git+https://github.com/dsdanielpark/Gemini-API.git

For the updated version, use as follows:

pip install -q -U python-gemini-api