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
driverloader-0.0.11.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for driverloader-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 281390278b7e2e74db76d1ea4f5fe6896a9ab2e076f97df11534cc13bbdc7388 |
|
MD5 | 2a50710ea1f7ea6b988d74a61a506ca7 |
|
BLAKE2b-256 | d1653dec6194a376f5416e91cca1e2e28f34ad209651e3fc27b0eb55bafb4b3f |