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
174 stars 35 forks source link

Login Failed #1

Closed drdoof2019 closed 3 years ago

drdoof2019 commented 3 years ago

I did this steps: 1) pip install myigbot 2) write this to a python file

from myigbot import MyIGBot
bot = MyIGBot('usrname', 'pass')  # Login Information (if you're account has 2 Factor Auth. The Bot Will Ask You The Code.)
a=bot.like('https://www.instagram.com/p/CHqtHbkB6KE/')
print(a)

but unfortunately

←[91m[✗] Login Failed!←[0m

this error occured. What's wrong?

b31ngd3v commented 3 years ago

Try to login in your browser in incognito mode and see if it asks for any code or not. After verifing the code in your browser, run the script.

drdoof2019 commented 3 years ago

I already did that, did not work. I can log in to my account in incognito mode but I cannot login with script

b31ngd3v commented 3 years ago

Soon pushing the next update of the module, in 1-2 days

animemoeus commented 3 years ago

I have the same problem

animemoeus commented 3 years ago

Try to login in your browser in incognito mode and see if it asks for any code or not. After verifing the code in your browser, run the script.

Also not working for me

b31ngd3v commented 3 years ago

@animemoeus @drdoof2019 I updated the package. pip install --upgrade myigbot

animemoeus commented 3 years ago

@animemoeus @drdoof2019 I updated the package. pip install --upgrade myigbot

Great

Its work for me now

Remiphilius commented 3 years ago

I have the same issue, despite pip install --upgrade myigbot

Goodsayan commented 3 years ago

I have the same problem and I already have version 0.2.5

File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/myigbot/init.py", line 61, in init self.csrf_token = cookie_jar['csrftoken'] KeyError: 'csrftoken'

And on my account IG, I have a suspicious connection attempt