Chromedriver Version Manager
Project description
ChromeDriver Version Manager
Um gerenciador simples e eficiente para manter o ChromeDriver sincronizado com a versão do Google Chrome instalada no sistema.
Ideal para automações com Selenium que quebram frequentemente devido a atualizações automáticas do navegador.
Funcionalidades
- Detecção automática: Detecta a versão exata do Chrome instalado.
- Download inteligente: Busca a versão compatível via API oficial do Chrome for Testing (Google Chrome Labs).
- Cache integrado: Evita downloads repetidos — reutiliza o driver enquanto a versão do Chrome não mudar.
- Thread-safe: Usa file lock para garantir segurança em ambientes com múltiplos processos simultâneos.
- Multiplataforma: Funciona no Windows e Linux.
Instalação
pip install chromedriver-version-manager
Uso
from chromedriver_manager import ChromeDriverManager
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
driver_path = ChromeDriverManager().get_driver_path()
service = Service(driver_path)
driver = webdriver.Chrome(service=service)
Como funciona
- Detecta a versão do Chrome instalada na máquina.
- Consulta a API do Chrome for Testing para encontrar a versão compatível do ChromeDriver.
- Faz o download e extrai o executável automaticamente.
- Armazena o caminho em cache — nas próximas execuções, retorna o driver já baixado sem nova requisição.
Pré-requisitos
- Python >= 3.9
- Google Chrome instalado
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chromedriver_version_manager-1.3.2.tar.gz.
File metadata
- Download URL: chromedriver_version_manager-1.3.2.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7a0ec3cc280b69a51f48c561be1112c4a29d6623526fa06ea50598996cfbd0c
|
|
| MD5 |
7f2b65e0e14a36a1c95ef3d7baceffb2
|
|
| BLAKE2b-256 |
ee7682e422ee8458c90f44e2106a0fabbf0f4c6fba33c71939a61b2dd6474e75
|
File details
Details for the file chromedriver_version_manager-1.3.2-py3-none-any.whl.
File metadata
- Download URL: chromedriver_version_manager-1.3.2-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
018c1ff15ff777caff4c93b9ab70f8ece215570c2ada99a1d54ac2ee3dae92e5
|
|
| MD5 |
4389846ebd16abd0621310c3de4adeba
|
|
| BLAKE2b-256 |
0d39365f5679a8a1844a556a065e552263fa6e483000151020ce49515e3f0b83
|