

Set Phantomjs Browser User-Agent And Start Scarping Now phantomjs the command exists in the PATH and is ready to run. # sudo tar xvf phantomjs-2.1.1-linux-x86_64.tar.bz2Ĭhange directory to the Phantomjs binary file located phantomjs-X.XX.XXX-linux-x86_64/bin # cd phantomjs-2.1.1-linux-x86_64/bin Then download and extract the latest 64bit or 32bit Linux binary phantomjs package from Here (Linux 64Bit: phantomjs-2.1.1-linux-x86_64.tar.bz2 | Linux 32Bit: phantomjs-2.1.2). For Ubuntu Linux # sudo apt-get install build-essential g++ flex bison gperf ruby perl libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev libpng-dev libjpeg-dev python libx11-dev libxext-dev ttf-mscorefonts-installer On Centos # sudo yum install gcc gcc-c++ make flex bison gperf ruby openssl-devel freetype-devel fontconfig-devel libicu-devel sqlite-devel libpng-devel libjpeg-devel
