From 82b46605a259dc293f3cde7c1766e798605847b0 Mon Sep 17 00:00:00 2001 From: Alexander Graf <17130992+aandergr@users.noreply.github.com> Date: Wed, 15 Nov 2023 07:53:45 +0100 Subject: [PATCH] Add notice of 2FA currently not working --- instaloader/__main__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/instaloader/__main__.py b/instaloader/__main__.py index 3217252..5c8f503 100644 --- a/instaloader/__main__.py +++ b/instaloader/__main__.py @@ -160,6 +160,10 @@ def _main(instaloader: Instaloader, targetlist: List[str], try: instaloader.login(username, password) except TwoFactorAuthRequiredException: + # https://github.com/instaloader/instaloader/issues/1217 + instaloader.context.error("Warning: There have been reports of 2FA currently not working. " + "Consider importing session cookies from your browser with " + "--load-cookies.") while True: try: code = input("Enter 2FA verification code: ")