Instapy: Instapy Closes quickly after it Starts

Created on 2 Jun 2018  路  18Comments  路  Source: timgrossmann/InstaPy

20180602-063638.zip

Expected Behavior

To start the Instapy with quickstart.py

Current Behavior

Not Starting up. Closes instantaneously after it looks for the cookie file.

Possible Solution (optional)

InstaPy configuration

wontfix

Most helpful comment

This solved the cookie and login issue for me:

change line 136 of login_util.py: //select[@class='_fsoey']/option[text()='English']").click()

to

"//select[@class='hztqj']/option[text()='English']").click()
and add

sleep(2)
in between line 149: # (valid for placeholder too)
and: input_username = browser.find_elements_by_xpath(

All 18 comments

Me too!!
It says "Cookie file not found, creating cookie...


If raising an issue, please also upload the file located at:
/tmp/20180601-222248.html " but I don't know how to do that lol

same issue is facing here @claraabelha

I tried clearing everything.. did fresh install... cleared temp files... cookies... everything.. updated chromedriver.... checked account details and tried changing credentials too

I tried re-download InstaPy but the issue still there... I think it's because Instagram had a new update in the login page! But I can't update InstaPy's one...

@claraabelha yeah... I kinda think so... Anyways.. keep me posted if anything comes up ...

Hello,
Did you check new open PR?

Here some help for your error:
Check discussion #2133
Check PR #2137

The same PR for 2137 is #2146

My tips, please read other closed or open issue first.
Then read new open or closed PR.

Sometimes there already fixed for running error, just not get merged.

Hope that help.

@solehpolysas hey thanks for the help ... your login utils fixed the issue ... should i close this topic as this is a replica...

Same problem here, but this is after changing class to hztqj , it did run ok yesterday but today it crashed at the loggin page. It only run by clicking in the back button in the browser after it look for cookie.

Traceback (most recent call last):
  File "quickpy4.py", line 17, in <module>
    session.login()
  File "/home/uki/InstaPy/InstaPy-master/instapy/instapy.py", line 322, in login
    self.bypass_suspicious_attempt):
  File "/home/uki/InstaPy/InstaPy-master/instapy/login_util.py", line 151, in login_user
    click().send_keys(username).perform()
  File "/usr/local/lib/python2.7/dist-packages/selenium-2.53.6-py2.7.egg/selenium/webdriver/common/action_chains.py", line 74, in perform
    action()
  File "/usr/local/lib/python2.7/dist-packages/selenium-2.53.6-py2.7.egg/selenium/webdriver/common/action_chains.py", line 87, in <lambda>
    Command.CLICK, {'button': 0}))
  File "/usr/local/lib/python2.7/dist-packages/selenium-2.53.6-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 236, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python2.7/dist-packages/selenium-2.53.6-py2.7.egg/selenium/webdriver/remote/errorhandler.py", line 192, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementNotVisibleException: Message: Element is not currently visible and so may not be interacted with

20180531-151554.html.log

i keep getting Wrong login data!

@uki-uki I'm getting that same problem as well and am not sure how to fix it.

same here, have changed the class but receive "Wrong login data!" as a result. Anyone can help please?

Same here, @dreck142! The password is filled but the username doesn't. That's why it says the login is wrong...

@claraabelha Managed to make it work... I logged in manually while Instapy was trying to go through (got to be fast!) and I was in.. sad solution but it works for now...

This solved the cookie and login issue for me:

change line 136 of login_util.py: //select[@class='_fsoey']/option[text()='English']").click()

to

"//select[@class='hztqj']/option[text()='English']").click()
and add

sleep(2)
in between line 149: # (valid for placeholder too)
and: input_username = browser.find_elements_by_xpath(

@plaksel

Thanks for adding that solution. I edited my login_util.py and got it working!

This solved my problem!! Thanks

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. > If this problem still occurs, please open a new issue

@plaksel can you upload your login_util.py

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thisishotdog picture thisishotdog  路  3Comments

n0sw34r picture n0sw34r  路  3Comments

v77v picture v77v  路  3Comments

ghost picture ghost  路  3Comments

wyvers picture wyvers  路  3Comments