Install ChromeDriver

Install the ChromeDriver to automatically control your Google Chrome browser programmatically using Selenium. Place the ChromeDriver binaries directly. It is assumed that it is a 64-bit version of Linux. Confirmed on Ubuntu 18.

google-chrome --version

version.

Google Chrome 96.0.4664.45

Download ChromeDriver from the ChromeDriver download page. Download the same version of Chrome above to avoid problems.

cd /usr/local/src
export CHROME_VERSION=96.0.4664.45
sudo wget https://chromedriver.storage.googleapis.com/$CHROME_VERSION/chromedriver_linux64.zip
sudo unzip chromedriver_linux64.zip
sudo mv chromedriver /usr/local/bin/

Check the version of ChromeDriver.

chromedriver --version

The output result of the version.

ChromeDriver 96.0.4664.45 (76e4c1bb2ab4671b8beba3444e61c0f17584b2fc-refs/branch-heads/4664@{#947})

Install Google Chrome

The ChromeDriver is required to automatically control the Google Chrome browser programmatically using Selenium. Google Chrome itself is required separately.

How to programmatically perform JavaScript-compatible web scraping?

To programmatically perform JavaScript-enabled web scraping, you need the Selenium library provided by the programming language. Perl- Selenium::Remote::Driver, PHP, Pyhton, Ruby and other Selenium libraries.

Associated Information