Install Google Chrome - CentOS 7

Install Google Chrome. I tried it on CentOS 7.

Add a repository for Google Chrome.

vi /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Install Google Chrome with the yum command.

yum -y install google-chrome-stable

Let's check the version.

google-chrome --version

This is the output result of the version.

Google Chrome 87.0.4280.88

Run Google Chrome headless

Headless execution means accessing a website without a GUI screen. Run Google Chrome headless and take a screenshot.

google-chrome --disable-setuid-sandbox --no-sandbox --headless --disable-gpu --dump-dom https://www.chromestatus.com/

It is OK if the HTML tree is displayed on the screen.

How to do JavaScript-compatible web scraping in Perl?

To do JavaScript-enabled web scraping in Perl, in addition to Google Chrome, Install Chrome Driver and Perl module Selenium::Remote::Driver is required.

Associated Information