-
Notifications
You must be signed in to change notification settings - Fork 231
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
Feature request - Login with 2fa enabled #215
Comments
That is complete nonsense. |
Can someone push the tweepy feature 2fa into the pull request so @trevorhobenshield can review it? |
@haoyanglu @alenkimov @vakandi @trevorhobenshield any progress on this? |
@jonathanrstern not yet, I was busy lately, but I will need it in September for the software I'm building, when I start I'll post a message here in case someone is down to help me implement it (mid September) |
Sounds great - I just built it myself actually. Working well. Shouldn't be too tricky for you to implement. Let me know if you want the code. |
Hi man, |
@jonathanrstern let me know I could really use it right now 👌🏻 thanks |
stand by @vakandi |
➜ twitter-api-client git:(twitter-2fa-login) git push --set-upstream origin twitter-2fa-login |
@trevorhobenshield if you give me permission I will make the PR |
Here's the code:
|
Thanks a lot man, nice clean job I'll test it soon |
@jonathanrstern I tested your code it works nicely with 'raw' 2fa code, thanks! Some accounts do use https://2fa.fb.rip for generating the code though, does anyone needs the implementation of it? i coded it yesterday |
Actually my test were using ct0 and auth_token , so my bad on that i thought it worked, i tested the code again and i actually have an error, i tested it with multiple different account, using username, mail ,password and 2fa, and every time it tries to loggin it fails with this error :
How i do my test: I tried with your function :
and i tried with the code given by "https://2fa.fb.rip" api:
How i modify the solve_2fa_challenge function by just giving it the new code in the parameter directly:
|
From my observation Twitter accounts with 2fa enabled have lower chances to get suspended / locked. While it is easy to use PyOTP to generate a temporary token, I don't have clue on how to pass it back to Twitter server (via GraphQL?) for verification. Is it possible to enable this feature? Or if the answer is no, could you shed some light on how to achieve that? Thank you.
The text was updated successfully, but these errors were encountered: