subzeroid / instagrapi

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

login function always return true? #1970

Open aboubakrjeb opened 2 months ago

aboubakrjeb commented 2 months ago

Hello everyone!

I just created a folder and isntalled the instagrapi as dependency using pip and created a index.py and then imported the instagrapi library. When I run the python script, the login function always returns true, even I tried a wrong credential. BTW I'm using a private instagram account, but don't know if it does matter!

The code is follows: `cl = Client() coldILoginInIG: bool = cl.login(ACCOUNT_USERNAME, ACCOUNT_PASSWORD)

print(coldILoginInIG) x = sys.exit(0) x()`

How can I fix this problem?

sunmasters commented 2 months ago

You can modify methods as you like. Why don't you try?

aboubakrjeb commented 2 months ago

what you mean you can modify them?