b31ngd3v / MyIGBot

MyIGBot is a Private API for Instagram to like, follow, comment, view & intaract with stories, upload post & stories, get all information about a user/posts and get posts based on locations/hashtags. It also supports proxy.
https://pypi.org/project/myigbot/
MIT License
172 stars 36 forks source link

suspicious login attempt blocked #15

Open atharvakadlag opened 3 years ago

atharvakadlag commented 3 years ago
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,

sleepingforest20 commented 3 years ago

update your script,

kass507 commented 3 years ago

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.