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

I cannot login to Instagram properly with the bot #1

Open
ilyadynin opened this issue Aug 12, 2021 · 3 comments
Open

I cannot login to Instagram properly with the bot #1

ilyadynin opened this issue Aug 12, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@ilyadynin
Copy link

Always when I run the bot and it tries to login to Instagram with chromedriver in a new instance, there always is a message like "Save login information for this browser" and then I get the message "Unable to login" and the bot stops

@AbhilashDatta
Copy link
Owner

I never encountered that while developing, so I didn't include that in the pipeline or handled any exceptions for it. You have to disable the password-saving feature permanently for your new chrome instances. You may get help here :
https://stackoverflow.com/questions/46595113/how-to-disable-chromes-save-password-popup-in-selenium-webdriver-python
If any further problem persists, feel free to contact me :)

@ilyadynin
Copy link
Author

ilyadynin commented Aug 13, 2021

Where do I have to add this one :)? I mean in which file
I am new to Python, so I have a lot of troubles... I am sorry xd

@AbhilashDatta
Copy link
Owner

You can add the code in the constructor of the Bot class.


class Bot():

    def __init__(self):
        chrome_opt = webdriver.ChromeOptions()
        prefs = {"credentials_enable_service", False}
        prefs = {"profile.password_manager_enabled" : False}
        chrome_opt.add_experimental_option("prefs", prefs)

        self.driver = webdriver.Chrome(chrome_options=chrome_opt)
        self.driver.maximize_window()

@AbhilashDatta AbhilashDatta added the bug Something isn't working label Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants