Skip to content

Instantly share code, notes, and snippets.

@michael-halim
Created March 15, 2023 06:37
Show Gist options
  • Save michael-halim/9f0c7c69e77937f99724b2054c8be5ec to your computer and use it in GitHub Desktop.
Save michael-halim/9f0c7c69e77937f99724b2054c8be5ec to your computer and use it in GitHub Desktop.
Deploy Website Scraping Python Selenium on Virtual Private Server (Ubuntu 22.10)

Version

  • Ubuntu 22.10
# Login into VPS
ssh <username>@<ip_address>

# Update All Dependencies
sudo apt update
sudo apt upgrade

# Install Stable Google Chrome Version
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get install -f

# Check Google Chrome
google-chrome

# Install Chromedriver
wget https://chromedriver.storage.googleapis.com/110.0.5481.30/chromedriver_linux64.zip
sudo apt-get install unzip
unzip chromedriver_linux64.zip
sudo mv chromedriver /usr/bin/chromedriver
sudo chown root:root /usr/bin/chromedriver
sudo chmod +x /usr/bin/chromedriver

# Check Chromedriver
chromedriver --url-base=/wd/hub

# Remove Unnecesarry File and Folder
cd /home/
rm -rf LICENSE.chromedriver google-chrome-stable_current_amd64.deb chromedriver_linux64.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment