Last active
March 27, 2018 09:51
-
-
Save denisemenov/9c2a317b74f9fc4ccc4f7f6cbd89202a to your computer and use it in GitHub Desktop.
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
| sudo apt-get update | |
| sudo apt-get -y upgrade | |
| sudo apt-get -y install unzip python3-pip python3-dev build-essential libssl-dev libffi-dev xvfb nano zip git | |
| sudo pip3 install --upgrade pip | |
| export LANGUAGE=en_US.UTF-8 | |
| export LANG=en_US.UTF-8 | |
| export LC_ALL=en_US.UTF-8 | |
| locale-gen en_US.UTF-8 | |
| sudo dpkg-reconfigure locales | |
| pip3 install --upgrade pip | |
| cd ~ | |
| 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 -y -f | |
| sudo rm google-chrome-stable_current_amd64.deb | |
| 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 | |
| cd InstaPy | |
| pip install . | |
| crontab -e | |
| 12 0,3,6,9,12,15,18,21 * * * cd ~/InstaPy && /usr/bin/python3 ./feed_aj.py | |
| 13 1,4,7,10,13,16,19,22 * * * cd ~/InstaPy && /usr/bin/python3 ./tags_aj.py | |
| 14 2,5,8,11,14,17,20,23 * * * cd ~/InstaPy && /usr/bin/python3 ./tags_ds.py | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment