A package that downloads and manage Chromedriver
Project description
A package that downloads and manage Chromedriver
Created to be used in a project, this package is published to github for ease of management and installation across different modules.
Installation
install from github
pip install git+https://github.com/AresJef/ChromeDM.git
How to Use
from chromedm import ChromeDM
cdm = ChromeDM(
# Default cache directory: `~/chromedm/.drivers`.
dir=None
/or...
# Custom cache directory: `/destop/chromedrivers`.
dir="/destop/chromedrivers"
)
chromedriver = await cdm.install(
# Match the latest driver version after 1 day.
latest_version_interval = 86_400,
# Use local proxy.
proxy="http://127.0.0.1:7890",
# Download timeout after 10 seconds.
timeout=10,
# Only cache the latest 20 drivers.
max_cache=20,
)
Compatibility
Only support for python 3.10 and above.
Acknowledgements
ChromeDM is based on several open-source repositories.
ChromeDM makes modification of the following open-source repositories:
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
chromedm-0.1.10.0.tar.gz
(14.8 kB
view hashes)
Built Distribution
Close
Hashes for chromedm-0.1.10.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1ccdcb00ee28d36914c0e026d0b7da03b24d29bcf800261e00b4c330b0af390 |
|
MD5 | 84ac5e8e5d86d3ad615d6abd7a25bd62 |
|
BLAKE2b-256 | 1a760b67063dcefb7e3674289f548aea2ac70cb1ad57d6bafca3766371f7193a |