install chrome and chrome driver on ubuntu

Posted 学以致用

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了install chrome and chrome driver on ubuntu相关的知识,希望对你有一定的参考价值。

sudo apt install python-minimal # python 2.7.x
sudo apt install python-pip

# https://www.ubuntuupdates.org/ppa/google_chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c ‘echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list‘

sudo apt-get update
sudo apt-get install google-chrome-stable
# download chrome driver from https://chromedriver.storage.googleapis.com/index.html?path=2.31/
wget https://chromedriver.storage.googleapis.com/2.31/chromedriver_mac64.zip
unzip chromedriver_mac64.zip
sudo cp ./chromedriver /usr/bin/

sudo pip install selenium
sudo pip install requests
sudo pip install beautifulsoup4
sudo pip install pyyaml
sudo pip install python-dateutil


以上是关于install chrome and chrome driver on ubuntu的主要内容,如果未能解决你的问题,请参考以下文章

Linux install chrome-driver

centos7 install google-chrome

Install Google Chrome on CentOS 7 / RHEL 7

Install Google Chrome Web Browser on Ubuntu 18.04

install chrome in elementary os

CentOS下安装Chrome浏览器