subzeroid / instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2024
https://hikerapi.com/p/bkXQlaVe
MIT License
4.38k stars 686 forks source link

Every time I try to login, it asks for verification code #1165

Closed theAbdoSabbagh closed 1 year ago

theAbdoSabbagh commented 1 year ago

Describe the bug Not so long ago I used to use this library and I never was asked for a "verification code" by Instagram, but recently every time I try to login, it asks for a verification code. This isn't good for me as I want to log into the account through a custom application of mine, so I'm not sure what to do as it asks for the code through terminal input and the terminal isn't a part of my application.

To Reproduce

from instagrapi import Client
bot = Client()
bot.login("username", "password")

Traceback No traceback

Expected behavior I expect it to login without asking for a code just like it goes when using the normal app

Desktop (please complete the following information):

adw0rd commented 1 year ago

https://adw0rd.github.io/instagrapi/usage-guide/challenge_resolver.html

theAbdoSabbagh commented 1 year ago

Thank you!