twscrape icon indicating copy to clipboard operation
twscrape copied to clipboard

Unable to find values for cookies

Open Savepeter2 opened this issue 8 months ago • 2 comments

Hello, in your code documentation, you had this below, which is the values for cookies, you didn't add how we'll get these values, I got a cookies ready based acct from the provider in the documentation.

 cookies = "abc=12; ct0=xyz" # or '{"abc": "12", "ct0": "xyz"}'

Now I am facing this error below: "cto" not in cookies, how do I get the value for "cto" and "abc" in the code above, P.S my acct hasn't been banned, I'm able to login successfully on twitter

Image

In my code below: I didn't set values for cookies and I'll like to:

Image

When I used the "cto" entry and "auth_token" entry under the cookies from the login page on twitter, I got this error

Image

Someone should please help me asap

Savepeter2 avatar Apr 20 '25 07:04 Savepeter2

do you can fix this already sir?I also experienced the same thing @Savepeter2

mikysetiawan avatar Jun 14 '25 17:06 mikysetiawan

Get the ct0 from the browser, then, delete the accounts.db. Might work

xanderazuaje avatar Sep 18 '25 22:09 xanderazuaje