vladkens / twscrape

2024! X / Twitter API scrapper with authorization support. Allows you to scrape search results, User's profiles (followers/following), Tweets (favoriters/retweeters) and more.
https://pypi.org/project/twscrape/
MIT License
793 stars 104 forks source link

twscrape.accounts_pool:login:148 - Failed to login to @XAccount: 'ct0' #143

Closed LorenzEh closed 2 months ago

LorenzEh commented 3 months ago

Can someone explain me what this error means?

2024-03-14 12:07:46.795 | ERROR | twscrape.accounts_pool:login:148 - Failed to login to @XAccount: 'ct0'

thx

jemather commented 3 months ago

Getting the same erorr - ct0 is one of the authentication cookies for Twitter (https://help.twitter.com/en/rules-and-policies/x-cookies) along with auth_token and x-csrf-token. But haven't had time to figure out what's happening here yet.

CrongCrong23 commented 3 months ago

were you guys able to find the solution? I'm currently facing the same issue :<

jemather commented 3 months ago

The issue went away for me in the interim, so my guess is its something on Twitter's end. If you can login to the account manually, you might try adding the account with a cookie.

CrongCrong23 commented 3 months ago

I tried logging in today and the error was gone. Seems like you were right that the problem was on twitter's end.

vladkens commented 2 months ago

Most likely it is temporary IP ban, so ct0 cookie not found. Add check for this. Will be released in v0.12