Trying to login to Instagram using Instaloader,
L = ig.Instaloader()
L.login(user, password)
L.two_factor_login(11111)
raises the following error
raise TwoFactorAuthRequiredException("Login error: two-factor authentication required.")
instaloader.exceptions.TwoFactorAuthRequiredException: Login error: two-factor authentication required.