Last active
December 18, 2018 13:54
-
-
Save Mehran/970a4a6a705f5898ca465312e785f8f4 to your computer and use it in GitHub Desktop.
instapy-easy.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Author ### | |
# By : Mehran Goudarzi | |
# Update : 2018-11-12 | |
# Description : Automation Installer (Ubuntu 18.0 & Ubuntu 16.0) | |
# Version : 1.2 | |
############### | |
echo -e "[*] General dependencies..." | |
apt-get update | |
apt-get -y upgrade | |
add-apt-repository universe | |
apt-get -y install unzip python3-pip python3-dev build-essential libssl-dev libffi-dev xvfb git | |
pip3 install --upgrade pip | |
hash -d pip3 | |
locale-gen --purge "en_US.UTF-8" "fa_IR.UTF-8" | |
timedatectl set-timezone Asia/Tehran | |
export LANGUAGE=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
echo -e "[*] Chrome-stable" | |
cd ~ | |
wget "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" | |
dpkg -i google-chrome-stable_current_amd64.deb | |
apt-get install -y -f | |
rm google-chrome-stable_current_amd64.deb | |
echo -e "[*] InstaPy installation" | |
git clone https://github.com/timgrossmann/InstaPy.git | |
latest_version=$(wget https://chromedriver.storage.googleapis.com/LATEST_RELEASE -O -) | |
wget https://chromedriver.storage.googleapis.com/${latest_version}/chromedriver_linux64.zip | |
unzip chromedriver_linux64 | |
mv chromedriver InstaPy/assets/chromedriver | |
chmod +x InstaPy/assets/chromedriver | |
chmod 755 InstaPy/assets/chromedriver | |
rm chromedriver_linux64.zip | |
cd InstaPy | |
pip3 install --ignore-installed PyYAML && pip3 install schedule && pip3 install -r requirements.txt | |
echo -e "[*] Installation Done..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment