d60 / twikit

Twitter API Scraper | Without an API key | Twitter Internal API | Free | Twitter scraper | Twitter Bot
https://twikit.readthedocs.io/en/latest/twikit.html
MIT License
1.44k stars 170 forks source link

Flow name LoginFlow is currently not accessible. #236

Open lichao23 opened 4 weeks ago

lichao23 commented 4 weeks ago

“Flow name LoginFlow is currently not accessible.”

I encountered the same issue. There are two servers—one works fine, but the other always throws this error no matter what. Both environments are identical Docker setups, and Java calls a Python script. I’ve also tried changing the user-agent multiple times, but it didn’t help.

The Client is created at the start of the script, and it’s used within the method.

I’ve tried most of the solutions related to this issue from the list, but I still can’t figure out what the problem is.

My final workaround was to log in on the test server, obtain the cookie, and then use it on the production server to bypass the login step. But how long can this solution last?

desktop69 commented 2 weeks ago

Hi, I’m working on a similar setup and also encountered the "Flow name LoginFlow is currently not accessible" issue. I'm trying to use manual cookies to bypass login, but I couldn’t locate the _twitter_sess cookie in Chrome DevTools or other export methods. Could you explain how you managed to obtain _twitter_sess or if you use another combination of cookies (like auth_token) to maintain the session? Any help would be appreciated!