Skip to content

Example of username and password proxy authentication for use in Selenium

License

Notifications You must be signed in to change notification settings

pkjha527/Selenium-proxy-authentication

This branch is 7 commits behind Smartproxy/Selenium-proxy-authentication:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

601fad2 · Oct 3, 2022

History

8 Commits
Apr 14, 2021
Apr 12, 2021
Oct 3, 2022
Oct 3, 2022

Repository files navigation

Username and password proxy authentication with Selenium Chrome

To authenticate proxies with username and password on Selenium, the most common approach on various programming languages is to write a custom extension which would handle the proxy connection. Such an extension is shown in extension.py example.

The proxies function in the provided extension.py file can be imported and easily used in any project as given in the main.py example. The function expects 4 values: username, password, endpoint and port.

proxies_extension = proxies(username, password, endpoint, port)

The extension is then added using the add_extension method:

chrome_options.add_extension(proxies_extension)

This example can be easily adapted for use in other programming languages as well as supported webdrivers.

About

Example of username and password proxy authentication for use in Selenium

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%