A webdriver downloader
Project description
Quick start:
Download chrome driver:
from driverloader import chrome_driver
print(chrome_driver.default)
Download firefox driver:
from driverloader import firefox_driver
print(firefox_driver.default)
The drivers would be downloaded in executor/ dir of the webdrivers package. You can find chromedriver.exe or geckodriver.exe in the dir.
Using with selenium:
from selenium.webdriver import Chrome
from driverloader import chrome_driver
browser = Chrome(chrome_driver.default)
browser.quit()
Downloading to customized path:
from driverloader import chrome_driver
driver_path = chrome_driver(path='.')
or absolute path:
import pathlib
from driverloader import chrome_driver
current_dir = pathlib.Path(__file__).parent.parent
print(chrome_driver(current_dir))
customized version:
from driverloader import chrome_driver
driver_path = chrome_driver(path='.', version='70')
command line
Using driverloader by command line like this:
driverloader chrome .
driverloader firefox .
Two arguments:
- driver_name, chrome and firefox supported.
- path, the path you want to save the driver.
Options:
-v
or--version
, the version would be downloaded.-f
or--force
, force downloading if the similar driver exists
System Platform
Driverloader would download the given version according to your OS, windows, mac, linux are all OK.
Mirror URL
webdriver-downloader get the drivers from https://npm.taobao.org/mirrors/
- chrome driver: https://npm.taobao.org/mirrors/chromedriver/
- firefox driver: https://npm.taobao.org/mirrors/geckodriver/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file driverloader-0.1.3.tar.gz
.
File metadata
- Download URL: driverloader-0.1.3.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.4 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d01c438367080963dcef3a947c0c98d8915e505c78bbed83acfcdadaf1a4c35 |
|
MD5 | b46afa1b343ab152feb9558930483eb5 |
|
BLAKE2b-256 | 1b8eb29a34b79fdb6a1afdef64a46e0780a05d73dfbdb75cbcb27369649ee619 |
File details
Details for the file driverloader-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: driverloader-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.4 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08347b3132cf725ad432b633fb581f27f16bc520ba6f563fcc78c2a4d7ccfca0 |
|
MD5 | 83578200902ef402bc50db80b27ad16e |
|
BLAKE2b-256 | 661643e1c423e785459b76ba177536d30303eb51b98f755c3ed2bf8116bbadc8 |