1.搭建环境:
python版本:3.5.1 -宝塔 python管理工具安装
系统环境:centos7.6
2.安装pyspider
pip install pyspider
3.安装phantomjs
官网下载:http://phantomjs.org/download.html
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
解压:
yum -y install unbzip2
bzip2 -d phantomjs-2.1.1-linux-x86_64.tar.bz2
tar -xf phantomjs-2.1.1-linux-x86_64.tar
mv