You might need to execute the following commands as root
, or use sudo
.
apt-get update && apt-get upgrade -y
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
Follow the instructions.
source ~/.bashrc
conda -V
python -V
conda update conda
conda install -c conda-forge scrapy selenium pymongo
scrapy version
apt-get install libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev
Enable Contrib
and Non-Free
Repository - /etc/apt/sources.list
apt-get update && apt-get install -y ttf-mscorefonts-installer
apt-get install curl
PHANTOM_JS_LATEST=$(curl -s https://bitbucket.org/ariya/phantomjs/downloads/ | grep -i linux-x86_64 | grep -v symbols | head -n 1 | cut -d '>' -f 2 | cut -d '<' -f 1)
wget -t 0 -c https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS_LATEST
PHANTOM_JS_DIR=$(echo ${PHANTOM_JS_LATEST%.tar.bz2*})
mkdir $PHANTOM_JS_DIR
tar -xjvf $PHANTOM_JS_LATEST -C $PHANTOM_JS_DIR --strip-components=1
mv $PHANTOM_JS_DIR /usr/local/share
ln -sf /usr/local/share/$PHANTOM_JS_DIR/bin/phantomjs /usr/local/bin
phantomjs --version
Done.