Skip to main content

Download browser extensions

Project description

Browser Extension

A tool to download and use browser extensions on Selenium/Browsers!

Installation

pip install browser-extension

Usage

For Download and Use

from browser_extension import ChromeExtension

extension_url = '<extension_url>'
chrome_version = '<chrome_version>'

path = ChromeExtension(extension_url, chrome_version).download()
print(path)

Use With Selenium

from browser_extension import ChromeExtension

# Load the extension
extension_url = '<extension_url>'
chrome_version = '<chrome_version>'
path = ChromeExtension(extension_url, chrome_version).download()

# Load the extension in Selenium
options = webdriver.ChromeOptions()
options.add_extension(path)
driver = webdriver.Chrome(options=options)  # or add to your existing options

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

browser_extension-1.0.0.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

browser_extension-1.0.0-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page