Skip to main content

Chromedriver Version Manager

Project description

ChromeDriver Version Manager

PyPI version PyPI - Python Version PyPI - Downloads

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

  1. Detecta a versão do Chrome instalada na máquina.
  2. Consulta a API do Chrome for Testing para encontrar a versão compatível do ChromeDriver.
  3. Faz o download e extrai o executável automaticamente.
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chromedriver_version_manager-1.3.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chromedriver_version_manager-1.3.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file chromedriver_version_manager-1.3.2.tar.gz.

File metadata

File hashes

Hashes for chromedriver_version_manager-1.3.2.tar.gz
Algorithm Hash digest
SHA256 c7a0ec3cc280b69a51f48c561be1112c4a29d6623526fa06ea50598996cfbd0c
MD5 7f2b65e0e14a36a1c95ef3d7baceffb2
BLAKE2b-256 ee7682e422ee8458c90f44e2106a0fabbf0f4c6fba33c71939a61b2dd6474e75

See more details on using hashes here.

File details

Details for the file chromedriver_version_manager-1.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for chromedriver_version_manager-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 018c1ff15ff777caff4c93b9ab70f8ece215570c2ada99a1d54ac2ee3dae92e5
MD5 4389846ebd16abd0621310c3de4adeba
BLAKE2b-256 0d39365f5679a8a1844a556a065e552263fa6e483000151020ce49515e3f0b83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page