Skip to content
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

[twitter] 2-factor authentication blocks usage #1409

Closed
rautamiekka opened this issue Mar 24, 2021 · 2 comments
Closed

[twitter] 2-factor authentication blocks usage #1409

rautamiekka opened this issue Mar 24, 2021 · 2 comments

Comments

@rautamiekka
Copy link
Contributor

After I removed 2FA from my Twitter altogether I could use gallery-dl with username+password like normal, so can anything be done to have 2FA and still use gallery-dl ?

The output before 2FA removal:

# gallery-dl "https://twitter.com/SoulDew2"
gallery-dl: Starting DownloadJob for 'https://twitter.com/SoulDew2'
twitter: Using TwitterTimelineExtractor for 'https://twitter.com/SoulDew2'
twitter: Logging in as [email protected]
urllib3.connectionpool: Starting new HTTPS connection (1): twitter.com:443
urllib3.connectionpool: https://twitter.com:443 "GET /login HTTP/1.1" 200 None
urllib3.connectionpool: https://twitter.com:443 "POST /sessions HTTP/1.1" 302 246
urllib3.connectionpool: https://twitter.com:443 "GET /account/login_verification?platform=web&user_id=REDACTED&challenge_type=Totp&challenge_id=B0y2p6pN22ybXn11qd4bQHlU4nblDQll8Y%252F2&remember_me=true&redirect_after_login_verification=%2F HTTP/1.1" 200 5203
twitter: AuthenticationError: Invalid or missing login credentials

My config=https://paste.gg/p/rautamiekka/878bc0e5ef7f4e1fa5a2cc9546d3b9fb

@mikf
Copy link
Owner

mikf commented Mar 25, 2021

You should be able to use cookies instead of username&password.
For twitter, auth_token is all that`s needed and it only expires after several years:

"twitter": {
    "cookies": {
        "auth_token": "..."
    }
}

@rautamiekka
Copy link
Contributor Author

That worked. I created a dummy acc for that purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants