https://github.com/batuhan0sanli/browser_extension
A library for downloading and using browser extensions
https://github.com/batuhan0sanli/browser_extension
browser chrome chrominium download extension selenium webdriver
Last synced: 5 months ago
JSON representation
A library for downloading and using browser extensions
- Host: GitHub
- URL: https://github.com/batuhan0sanli/browser_extension
- Owner: batuhan0sanli
- License: mit
- Created: 2022-09-15T18:15:57.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-06T03:31:57.000Z (over 3 years ago)
- Last Synced: 2026-01-04T04:30:27.955Z (6 months ago)
- Topics: browser, chrome, chrominium, download, extension, selenium, webdriver
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Browser Extension
A tool to download and use browser extensions on Selenium/Browsers!
## Installation
```bash
pip install browser-extension
```
## Usage
### For Download and Use
```python
from browser_extension import ChromeExtension
extension_url = ''
chrome_version = ''
path = ChromeExtension(extension_url, chrome_version).download()
print(path)
```
### Use With Selenium
```python
from browser_extension import ChromeExtension
# Load the extension
extension_url = ''
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
```