-
Notifications
You must be signed in to change notification settings - Fork 1.3k
user_data_dir & proxy #2368
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
Comments
To disable proxy settings for regular Selenium, use https://stackoverflow.com/a/49033706/7058266: chrome_options.add_argument("--no-proxy-server") With SeleniumBase, those options get passed via chromium_arg="--no-proxy-server" With the driver = Driver(chromium_arg="--no-proxy-server") |
Hi, I am still having same issue with |
@epictroller64 You probably mixed your UC Mode |
Seems the only solution is to delete |
@epictroller64 You probably need to disable extensions: (Proxy details are configured via Chrome extension in SeleniumBase.) Also, make sure you're not mixing a non UC Mode Chrome |
I found that creating the profile using UC mode and a proxy with username:pass authentication will cause the profile to always require that same proxy. If you create a profile using UC mode and a proxy without username:pass, then it will work normally as expected. So that's what I did. If you only have proxies with username authentication then you could use proxy.py perhaps to forward the proxy, then use the downstream proxy to create the profiles. |
Hello.
This code works well for me. It creates a local directory profile, uses the proxy and adds my extensions.
driver = Driver(uc=True, headed=True, proxy=PROXY, user_data_dir=absolute_profile_directory, page_load_strategy="eager", extension_dir=extensions_dir)
My issue is when I want to come back to this profile later, it requires authentication from the proxy I used when I created it. The problem is, I rotate proxies and the authentication changes.
I tried regular Selenium:
As well as SB:
driver = Driver(uc=True, headed=True, user_data_dir=folder_path)
I just want to load that profile back up without a proxy requirement. I also snooped around in the profile folder looking to see where the proxy information was being stored, so I could delete it programmatically before launching. However I couldn't find that information. It wasn't in Preferences or anywhere else that I had noticed.
Am I trying to do something that's unsupported? If so, is there a work-around -- such as deleting where the proxy data is stored before relaunching the profile?
Thank you
The text was updated successfully, but these errors were encountered: