-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth error code 399 twikit v2.2.0 #281
Comments
easiest way to login is extracting your auth_token and ct0 cookies and using set_cookie
|
thats all we need for cookies.json? Im trying to manually create in another device to avoid IP detecting |
Yes, also your session shouldn't be shown in a "session list" (known locations and devices) as far as I know, if you're using an existing cookie. It only tracks new logins. You can check using this simple tool https://github.com/cmj/twitter-tools/blob/main/user/UserSessionsList.sh |
Thanks for your fast and valuable answer. Its working. |
can you tell me how can I get auth_token thank you! |
Login via browser and extract from Browser console. It will appear on Application tab - Cookies |
Any cookie editing extension, i use EditThisCookie for chrome. |
thank you,I will try it |
this is my code it still doesn't work ,please help me thank you !!! |
Because your code structure is completely wrong and not inline with what setting and loading cookies is actually supposed to do. First log in, then set_cookies, later you can instead of logging in multiple times, creating a new session on your twitter account, Just load the cookies from said session and continue as usual. auth token and ct0 has no place there, If you wish to sign in with a OTP it currently does not work. |
Thank you for your answer. My current code has been modified to the same code as the example file, but I still cannot log in and return a 400 error. I have not logged in yet, and the following operations cannot be performed. Can you help me check if you really appreciate it my code is async def main(): asyncio.run(main()) this is return text Thank you! |
Fixed in version 2.2.2 |
Using twikit v2.2.0 (latest)
getting:
The text was updated successfully, but these errors were encountered: