A webdriver downloader
Project description
Quick start:
Download chrome driver:
from driverloader import drivers
print(drivers.chrome)
Download firefox driver:
from driverloader import drivers
print(drivers.firefox)
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 drivers
browser = Chrome(drivers.chrome)
browser.quit()
Downloading to customized path:
import driverloader
driver_path = driverloader.get_chrome_driver(target='.')
or absolute path:
import pathlib
import driverloader
current_dir = pathlib.Path(__file__).parent.parent
print(driverloader.get_chrome_driver(current_dir))
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
, pool support now.
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.1.tar.gz
(3.6 kB
view hashes)