Skip to main content

Selenium Proxy Extension v0.1.1

Considering that there is no function that works very well natively in Selenium for using proxys with authentication in chromedriver, this is an effective way to solve this problem.

Installation

pip install seleniumproxy

Usage

First, we import the extension, using the following syntax:

from seleniumproxy import proxies

Then we can use the syntax to set the proxy

proxies_extension = proxies("username", "password", "host", "port")

It looks like this:

from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.support.ui import WebDriverWait
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from seleniumproxy import proxies

def open_browser():
    chrome_options = webdriver.ChromeOptions()
    proxies_extension = proxies("username", "password", "host", "port")
    chrome_options.add_extension(proxies_extension)
    service = Service(executable_path='./chromedriver.exe') 
    driver = webdriver.Chrome(service=service, options=chrome_options)
    driver.get("https://api.my-ip.io/v2/ip.json")
    input("")
    
if __name__ == "__main__":
    driver = open_browser()

How it works?

This extension works in a very simple way, when calling the proxies function, it creates a javascript extension that configures the proxy in the browser, and this extension is injected when starting the browser

Roadmap

  • Add possibility to change the proxy with the browser open
  • Support browsers other than Chromedriver

Author

Metadata

Release files for seleniumproxy 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seleniumproxy 0.1.1
File Size Uploaded Provenance Actions
seleniumproxy-0.1.1.tar.gz 2.7 kB Without provenance Details for seleniumproxy-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for seleniumproxy 0.1.1
File Interpreter ABI Platform Actions
seleniumproxy-0.1.1-py3-none-any.whl Python 3 none any Details for seleniumproxy-0.1.1-py3-none-any.whl

Total release size: 5.7 kB

Release files / seleniumproxy-0.1.1.tar.gz

Download URL seleniumproxy-0.1.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
71ce3e7e47453b4413194f7bb97485e82d7456b8de2302de51973b793fde7575
BLAKE2b-256 checksum
How to use checksums
5f541c93b661296ba7ccdf8577a001151d3d2f945b2e7c2429d68a78cf0013ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.8.0

Release files / seleniumproxy-0.1.1-py3-none-any.whl

Download URL seleniumproxy-0.1.1-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98c60a0ec3ab02358801105433b6e0c9776bc089d22ecde2e349d07383a8cbf8
BLAKE2b-256 checksum
How to use checksums
a9f236a5dd18c222270c771861789f72c823e570bd758172422b37c70f3d19be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.8.0

Security for seleniumproxy 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page