scrapy

pip install scrapy -i http://pypi.douban.com/simple
pip install fake-useragent -i http://pypi.douban.com/simple
pip install Faker
pip install cos-python-sdk-v5 -i http://pypi.douban.com/simple
pip install selenium -i http://pypi.douban.com/simple
pip install twisted -i http://pypi.douban.com/simple
pip install requests -i http://pypi.douban.com/simple
pip install datetime -i http://pypi.douban.com/simple
pip install scrapy==1.8.0 //linux上python2.7则必须装这个版本
pip install scrapy-fake-useragent
pip install scrapy-user-agents
安装phantomjs https://bitbucket.org/ariya/phantomjs/downloads/ 找官网下载
放环境变量 sudo ln -sf /usr/local/app/.local/lib/python2.7/site-packages/phantomjs /usr/local/bin/phantomjs
或者(executable_path="/usr/local/app/.local/lib/python2.7/site-packages/phantomjs")
执行phantomjs -v
yum install bitmap-fonts bitmap-fonts-cjk

mac安装phantomjs
brew update && brew install phantomjs
phantomjs -v

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。