Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants