InstaPy / InstaPy

📷 Instagram Bot - Tool for automated Instagram interactions
GNU General Public License v3.0
16.86k stars 3.78k forks source link

Cannot login #937

Closed punktik closed 7 years ago

punktik commented 7 years ago

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()
ugurozturk commented 7 years ago

@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 ?

omrimaya commented 7 years ago

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:

italianrobot commented 7 years ago

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 ?

ghost commented 7 years ago

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

omrimaya commented 7 years ago

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)

ghost commented 7 years ago

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? :)

omrimaya commented 7 years ago

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?

punktik commented 7 years ago

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!