arch pipenv 升级pip之后 pip list使用原pip报错信息
more >>ImportError: cannot import name ‘HIDE_CURSOR’ from ‘pip._vendor.progress’ (/usr/lib/python3.7/site-packages/pip/_vendor/progress/init.py)
more >>ImportError: cannot import name ‘HIDE_CURSOR’ from ‘pip._vendor.progress’ (/usr/lib/python3.7/site-packages/pip/_vendor/progress/init.py)
$ sudo groupadd docker && sudo gpasswd -a ${USER} docker && sudo systemctl restart docker
$ newgrp docker
阿里登陆
里面有镜像加速设置方法!
环境 ArchLinux Pycharm
1 | cd py |
1 | sudo systemctl start mongondb.service |
让爬虫文件继承父类RedisSpide并添加redis_key = ‘blogspider’1
2
3
4
5
6class BlogSpiderSpider(RedisSpider):
name = 'blog_spider'
allowed_domains = ['www.kingname.info']
redis_key = 'blogspider'
start_urls = ['http://www.kingname.info/archives/']
host='http://www.kingname.info'
1 | pipenv shell |
1 | scrapy startproject baidu<工程名> |
3.启动scrapy爬虫
1 | scrapy crawl example<爬虫名> |
一、 关闭防火墙和 关闭selinux防火墙1
2
3sudo systemctl stop firewalld.service
sudo setenforce 0
reboot
1 | wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 |
1 | sudo ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin |
tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true