Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instagram Cookie PopUp prevents automated LogIn [Fixed] #22

Open
xSentry opened this issue Oct 15, 2020 · 2 comments
Open

Instagram Cookie PopUp prevents automated LogIn [Fixed] #22

xSentry opened this issue Oct 15, 2020 · 2 comments

Comments

@xSentry
Copy link

xSentry commented Oct 15, 2020

Lately Instagram shows the user a PopUp to Accept Cookies.
InstaPy doesn't handle that yet, so every LogIn fails.

I fixed it myself so if you need it too, just copy my Code:

  1. Find your Python Instapy directory. (For me it is somewhere in C:\Users\YOUR_USER\AppData\Local\Packages\)
  2. Open the instapy directory and find login_util.py
  3. Go to the line right befor the Login (For me thats around line 273)
  4. Copy following Code in there
#Check if Cookie PopUp is visible
    try:
        cookie_elem = browser.find_element_by_xpath("//button[text()='Accept']")
    except:
        cookie_elem = None

    if cookie_elem is not None:
        cookie_elem.click()

If this is too much for you, just download my attached file and put it in your instapy directory.
login_util.zip

@mobile-appz
Copy link

Thanks this worked well would be nice to see it added to the main repository

@Polkyanik
Copy link

here is the solution (Y)
https://github.com/timgrossmann/InstaPy/pull/6041

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants