Instapy: Cannot login

Created on 16 Nov 2017  路  8Comments  路  Source: timgrossmann/InstaPy

Expected Behavior

Login

Current Behavior

Fails to fill up username and password correctly - when executing everytime it meets a letter "r" it changes the field, and so fails to fill in the username and password to correct fields and vaules.

Thank you in advance for your help!

## InstaPy configuration
from instapy import InstaPy

insta_username = "username"
insta_password = "strongpassword"

# if you want to run this script on a server, 
# simply add nogui=True to the InstaPy() constructor
session = InstaPy(username=insta_username, password=insta_password, nogui=True)
session.login()

# set up all the settings
session.set_upper_follower_count(limit=2500)
session.set_do_comment(True, percentage=10)
session.set_comments(['super cool! Thank you for sharing it!', 'So much fun!!', 'Wonderful! :)'])
session.set_dont_include(['friend1', 'friend2', 'friend3'])
session.set_dont_like(['pizza', 'girl'])

# do the actual liking
session.like_by_tags(['berlin', 'berlinlove', 'event0berlin', 'topberlinphoto', 'berlinworld', 'topgermanyphoto'], amount=100)

# end the bot session
session.end()
help wanted

Most helpful comment

@punktik im not sure about that but i have an idea. Maybe the problem is password characters. Did you try changing password to normal ones ?

All 8 comments

@punktik im not sure about that but i have an idea. Maybe the problem is password characters. Did you try changing password to normal ones ?

You using VPS to run the Instapy project?
Or you using your computer .
I have meet the same problem before and solved it by changing my VPS ip adress .
If its in your computer try to browse www.instagram.com and see if it return 200 and try to login there .
If you have logged in then its not a banned ip ...
As @ugurozturk said maybe try changing the password for normal one and see if it works :+1:

if your username or password contains language specific characters like 貌莽 搂 please can you try to perform a test using just [a-z] or [A-Z] just to delineate the issue as suggested by @ugurozturk ?

My Login fails as well and I have a password with no specific characters

Did you try to do " git pull " ?
Maybe it will fix your problem .
Also have you tried to login to www.instagram.com from your browser not from instapy?

please try also to delete or comment your username and password variables and just put your username and password in
session = InstaPy(username=insta_username, password=insta_password, nogui=True)

To describe the problem a bit more detailed: Seems like when entering the password, the InstaPy Bot clicks the wrong field (cursor is moving into password field, but then clicks on: show all google chrome password or sth, which then opens a new page with google settings). Does this help? :)

What is your default browser language ?
Maybe it browsing not in english?
Because you Parse the Login button .
As it seems you using Windows for instapy?

I am on Linux, on VPS. I did also start it with GUI active.
And doing git pull indeed solved my issue. Also had to start chrome normally with X11 forwarding and approve the login. (May be this would be helpful to anyone)
Running and liking. THnk you for helping out, guys!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Naramsim picture Naramsim  路  3Comments

converge picture converge  路  3Comments

drcyber975 picture drcyber975  路  3Comments

46960 picture 46960  路  3Comments

seuraltimez picture seuraltimez  路  3Comments