Giter Site home page Giter Site logo

Comments (8)

piccolo20 avatar piccolo20 commented on May 27, 2024 2

Oh sorry about that. My fault keep refreshing my browser page and it generates new value. The code works well now.

from googlebard.

piccolo20 avatar piccolo20 commented on May 27, 2024 1

Those cookies always change per 10mins

from googlebard.

piccolo20 avatar piccolo20 commented on May 27, 2024 1

@nerblock thanks for creating this issue, by adding __Secure-1PSIDTS=<COOKIE_VALUE> I was able to make it work. However, I did not try to use __Secure-2PSIDTS or __Secure-3PSIDTS. Any way to generate those cookies programmatically?

You can get them if you get the success response. The response has Set-Cookie:

from googlebard.

piccolo20 avatar piccolo20 commented on May 27, 2024

I did include those cookies and it worked then after 20 minutes the request fails again. What do you think?

from googlebard.

nerblock avatar nerblock commented on May 27, 2024

I guess they added this requirement to make programatically calliing the api more difficult.

from googlebard.

hugoroussel avatar hugoroussel commented on May 27, 2024

@nerblock thanks for creating this issue, by adding __Secure-1PSIDTS=<COOKIE_VALUE> I was able to make it work. However, I did not try to use __Secure-2PSIDTS or __Secure-3PSIDTS. Any way to generate those cookies programmatically?

from googlebard.

nerblock avatar nerblock commented on May 27, 2024

You can use browser_cookie3.
Also check out this issue: dsdanielpark/Bard-API#99

from googlebard.

sturmenta avatar sturmenta commented on May 27, 2024

@nerblock Did you find a way to get the __Secure-1PSIDTS cookie programmatically?

from googlebard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.