Skip to content

Instantly share code, notes, and snippets.

@germainlefebvre4
Last active September 30, 2018 19:07
Show Gist options
  • Save germainlefebvre4/70738960bc938deb8d1693138d13e3aa to your computer and use it in GitHub Desktop.
Save germainlefebvre4/70738960bc938deb8d1693138d13e3aa to your computer and use it in GitHub Desktop.
Selenium Python - First-Step - Centos 7 dependencies
# Centos 7
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum-config-manager --enable epel
yum install -y vim wget unzip git python34 python34-pip # python34-devel
mkdir /opt/chromedriver
wget https://chromedriver.storage.googleapis.com/2.42/chromedriver_linux64.zip
unzip chromedriver_linux64.zip -d /opt/chromedriver
rm -f chromedriver_linux64.zip
mv /opt/chromedriver/chromedriver /opt/chromedriver/chromedriver-2.42
ln -sf /opt/chromedriver/chromedriver-2.42 /usr/bin/chromedriver
cat << EOF > /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
EOF
yum install -y google-chrome-stable libX11 xorg-x11-fonts-* xorg-x11-utils
git clone https://github.com/germainlefebvre4/drive-store_scraper-selenium.git
cd drive-store_scraper-selenium
pip3 install pipenv
pipenv --three
pipenv install selenium pymongo
pipenv run python parser_auchan.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment