yihong0618 / klingCreator

About High quality video and image generation by https://klingai.kuaishou.com and https://klingai.com/ Reverse engineered API.
GNU General Public License v3.0
84 stars 19 forks source link

Unclear how to find the cookie #7

Open sauravp opened 1 month ago

sauravp commented 1 month ago

It is not clear how to obtain the cookie or which cookie. When I inspect the Kling AI page on chrome, I see 5 cookies (See screenshot). None of those string values seem to work. image

yihong0618 commented 1 month ago

do some request and see the XHR copy all the cookie string

turkiet commented 1 month ago

Ekran Alıntısı

He can't find any results for 'KLING_COOKIE'. Am I making a mistake somewhere?

yihong0618 commented 1 month ago

Ekran Alıntısı

He can't find any results for 'KLING_COOKIE'. Am I making a mistake somewhere?

https://github.com/yihong0618/tg_bing_dalle follow this README

sauravp commented 1 month ago

When you inspect the elements (you can right-click on the webpage and select Inspect or use F12) on Chrome, under network you will find the XHR. You can click on "profile" and get the cookie value to copy. See screenshot. Note that you have to be logged in, and if you don't see anything there you can refresh or make a request to klingai.com.

image

VectorZhao commented 1 month ago

EditThisCookie, a Chrome extension, make it easy to export cookies.

lschaupp commented 1 month ago

how long is the Cookie valid for?

useapi commented 2 weeks ago

how long is the Cookie valid for?

21 days for userId, see https://github.com/yihong0618/klingCreator/issues/16

You actually need following three cookies did, userId and ksi18n.ai.portal_st: did=web_…; userId=…; ksi18n.ai.portal_st=…;