码迷,mamicode.com
首页 > 系统相关 > 详细

install chrome and chrome driver on ubuntu

时间:2017-08-21 22:58:45      阅读:256      评论:0      收藏:0      [点我收藏+]

标签:beautiful   sig   wget   mac   2.7   pat   www   sts   googl   

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

标签:beautiful   sig   wget   mac   2.7   pat   www   sts   googl   

原文地址:http://www.cnblogs.com/Jerryshome/p/7407084.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!