Skip to main content

Script to automatically install the ChromeDriver release compatible with the client's Chrome version.

Project description

chromedriver_autoinstall

Automatically downloads the version of ChromeDriver compatible with the client's version of Chrome (currently supports MacOS and Windows). Can be imported as a module and used to automatically reinstall ChromeDriver in its most updated/compatible version for any program that requires it.

Install:

Python 3.6 or higher is required

pip install chromedriver_autoinstall

Usage:

Write import chromedriver_autoinstall in your file, in the directory of which chromedriver will be installed.

Quick Example:

from selenium import webdriver
import os
import chromedriver_autoinstall
import time

PATH = "./chromedriver"
URL = "https://github.com/RoastSea8/chromedriver-autoinstaller"

def main():
    chromedriver_autoinstall.install()
    # os.chmod('./chromedriver', 0o755) # MacOS only
    driver = webdriver.Chrome(PATH)
    driver.get(URL)
    time.sleep(1000)

if __name__ == "__main__":
    main()

Linux support coming soon.

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_autoinstall-0.0.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

chromedriver_autoinstall-0.0.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file chromedriver_autoinstall-0.0.2.tar.gz.

File metadata

File hashes

Hashes for chromedriver_autoinstall-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8248f1e909b6f83d93647fd63996c8ed0fb81f93b4200d2af44bff6290ac5d15
MD5 c254115ff069fe475395ada99dae77d8
BLAKE2b-256 bc991ac7b576f23dc64460d0c4ac96dc7adfc6b19ad656e6cb16bd6f289c9be7

See more details on using hashes here.

File details

Details for the file chromedriver_autoinstall-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for chromedriver_autoinstall-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 762ddf917fe1c8e2ab53f37175ff60f5a18c1ea3b12e2fd7fca501db5c1c969e
MD5 5a84d78f6652dcd74ac1c986138715c3
BLAKE2b-256 fc68ff08d8399f3acb7edeef074cf2c5bbd0c41c3a1020e13d5d26ce15b05b98

See more details on using hashes here.

Supported by

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