Instapy: SOLVED: username and password with selenium and chrome (proxy)

Created on 20 Feb 2018  路  5Comments  路  Source: timgrossmann/InstaPy

It is very simple:
https://stackoverflow.com/questions/8885137/selenium-using-python-enter-provide-http-proxy-password-for-firefox/35293222

goto solution "Create a zip file proxy.zip containing two files:"

and add add_extension line in instapy.py

            chrome_prefs = {
                'intl.accept_languages': 'en-US'
            }
            chrome_options.add_extension("assets/proxy.zip")

SCK

wontfix

Most helpful comment

It does work for chrome without headless but when It dosen't work with headless chrome and throws org.openqa.selenium.WebDriverException: unknown error: failed to wait for extension background page to load: chrome-extension.

All 5 comments

I will PR soon

I have created a PR https://github.com/timgrossmann/InstaPy/pull/1531
Check please.

It does work for chrome without headless but when It dosen't work with headless chrome and throws org.openqa.selenium.WebDriverException: unknown error: failed to wait for extension background page to load: chrome-extension.

@roronoa007 , That is because headless chrome does not support extensions: https://bugs.chromium.org/p/chromium/issues/detail?id=706008

You could run chrome via xvfb or use headless firefox.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

seuraltimez picture seuraltimez  路  3Comments

Naramsim picture Naramsim  路  3Comments

n0sw34r picture n0sw34r  路  3Comments

ediooo picture ediooo  路  3Comments

Spyd3r0us picture Spyd3r0us  路  3Comments