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 #27

Closed yasserN closed 3 years ago

yasserN commented 3 years ago

Even the simplest bot would not work as the login would fail due to instagram detecting a suspicious login attempt and requiring verification. Even after verifying the warning, it would still block out the bot every time. What should I do? I have tried logging in using incognito, verifying, and starting up the bot, but this did not fix the issue. Does the bot not work anymore?

from myigbot import MyIGBot

bot = MyIGBot( "", "")

response = bot.upload_post('testing.png', caption='Image 1')
print(response) 

EDIT: I tried adding a 2 Factor Authentication to my account, but it still raises the suspi cious login warning, and gives me this error now:


Traceback (most recent call last):
  File "C:\Users\\Desktop\Personal Work\\.....\\", line 4, in <module>
    bot = MyIGBot('', '')
  File "C:\Users\...\AppData\Local\Programs\Python\Python38\lib\site-packages\myigbot\__init__.py", line 178, in __init__
    self.sessionid = login_response.headers['Set-Cookie'].split('sessionid=')[1].split(';')[0]
IndexError: list index out of range
toza-mimoza commented 3 years ago

Same here.

b31ngd3v commented 3 years ago

@n0-sound Hey, hide your credentials.

b31ngd3v commented 3 years ago

The bot is still functional, try to use proxy. I think your ip is flagged by Instagram.