semvec/pypi-packages huggingface dataset:
seleniumproxy 0.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.
License: MIT
Requires Python: >=3.6

# 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
```python
pip install seleniumproxy
```
## Usage

First, we import the extension, using the following syntax:
```python
from seleniumproxy import proxies
```

Then we can use the syntax to set the proxy
```python
proxies_extension = proxies("username", "password", "host", "port")
```

It looks like this:
```python
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

- Github [@kairodev](https://www.github.com/kairodev)