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

Cookie file not found, creating cookie... #6764

Open
xedthecreative opened this issue Oct 8, 2023 · 3 comments
Open

Cookie file not found, creating cookie... #6764

xedthecreative opened this issue Oct 8, 2023 · 3 comments

Comments

@xedthecreative
Copy link

xedthecreative commented Oct 8, 2023

Hi all,
this project is still active? I didn't understood how to receive support. Documentation is not reachble (404 error), twitter profile is empty and discord server seems to be not accessible. How to receive help??

I'm stuck here without any hope to solve the issue, could you help me? Linux Mint here

Solution provided in previous issues posts are not working with me

@xedthecreative xedthecreative changed the title Stuck on Instapy first start, please help! Cookie file not found, creating cookie... Oct 8, 2023
@xedthecreative
Copy link
Author

Solved adding this before login (raw 296 in mine login_util.py

# Check if Cookie PopUp is visible #5834 altered by DevconV
try:
    cookie_elem = browser.find_element(By.XPATH, "//button[text()='Decline optional cookies']")
except NoSuchElementException:
    try:
        cookie_elem = browser.find_element(By.XPATH, "//button[contains(@class, '_acan')]")
    except NoSuchElementException:
        cookie_elem = None

if cookie_elem is not None:
    cookie_elem.click()

@hestuppfodarn
Copy link

That fix solved it!

@benjamineruvieru
Copy link

Where did you get "By" from

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