VPNium
VPNium is a Python library for managing a VPN extension for Chrome WebDriver. It provides a convenient way to control and interact with a VPN extension within your Python scripts.
Installation
To install VPNium, you can use pip:
pip install vpnium
Usage
Here is an example of how to use VPNium in your Python script:
from VPNium import VPNium
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
from driverium import Driverium
options = Options()
options.add_argument("--headless=new")
service = Service(Driverium().get_driver())
vpnium = VPNium(options, service)
driver = vpnium.driver
servers = vpnium.get_available_servers()
print(servers)
vpnium.connect_to_server("United Kingdom (UK)")
vpnium.disconnect()
Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the VPNium GitHub repository.
License
VPNium is licensed under the MIT License. See the LICENSE file for more information.