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

suspicious login attempt blocked #15

Open
atharvakadlag opened this issue Dec 19, 2020 · 2 comments
Open

suspicious login attempt blocked #15

atharvakadlag opened this issue Dec 19, 2020 · 2 comments

Comments

@atharvakadlag
Copy link

atharvakadlag commented Dec 19, 2020

Traceback (most recent call last):
  File "/Users/xxx/MyIGBot/usage.py", line 3, in <module>
    bot = MyIGBot('correct-username', 'correct-password')
  File "/Users/xxx/MyIGBot/myigbot.py", line 178, in __init__
    self.sessionid = login_response.headers['Set-Cookie'].split('sessionid=')[1].split(';')[0]                
IndexError: list index out of range

I get this error, I am not sure what to do. Help will be appreciated.

Update:
the error disappeared, now it says login failed. instagram sent me a mail saying suspicious login blocked. need a workaround on this,

@atharvakadlag atharvakadlag changed the title self.sessionid = login_response.headers['Set-Cookie'].split('sessionid=')[1].split(';')[0] suspicious login attempt blocked Dec 19, 2020
@sleepingforest20
Copy link

update your script,

@kass507
Copy link

kass507 commented Jan 7, 2021

I have the same problem. I only receive the code by mail.
Note: My account does not have two-step authentication. I also have the package updated.

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

3 participants