Skip to content

Ismola/linux-chromedriver-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux Chromedriver Updater

A simple script to automatically download and update the latest version of Chromedriver for Linux.

Features

  • Downloads the latest Chromedriver release compatible with your installed Chrome/Chromium version.
  • Automatically replaces the existing Chromedriver binary.
  • Supports most Linux distributions.

Usage

  1. Clone this repository:

    git clone https://github.com/yourusername/linux-chromedriver-updater.git
    cd linux-chromedriver-updater
  2. Make the script executable:

    chmod +x update_chromedriver.sh
  3. Run the updater:

    ./update_chromedriver.sh

Requirements

  • Bash shell
  • curl and unzip installed
  • Chrome or Chromium installed

License

MIT License

If you prefer to use the script directly from GitHub, you can use the following raw link:

curl -o script.sh https://raw.githubusercontent.com/Ismola/linux-chromedriver-updater/refs/heads/main/script.sh
chmod +x script.sh

Usage

Manual Execution

You can run the script manually with the following command:

./script.sh

The script will download the latest version of ChromeDriver, unzip it, and move it to your current directory. It will also clean up temporary files.

Automation (using cron)

If you want to automate the script execution, for example, to run periodically on a server, you can add it to a cron job.

  1. Open the crontab file to edit:
crontab -e

Add an entry to run the script automatically, for example, every day at 3:00 AM:

0 3 \* \* \* /path/to/script.sh

Replace /path/to/script.sh with the location where you have stored the script on your server.

Note

This script is designed to work on Linux and should be run with appropriate permissions to avoid issues with writing to the system. If you wish to run it in a different environment, it may be necessary to adapt it.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Script that automates the download of chromedriver on linux in new versions +115

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages