中国房价行情平台creprice.cn爬虫,基于scrapy、redis、mongodb进行开发
- Ubuntu 16.04.2 LTS 64位
- Python 2.7.12
- sudo apt-get install python-pip -y
- pip install setuptools
- pip install setuptools --upgrade
- pip install Scrapy==1.3.3
- pip install redis==2.10.5
- pip install scrapy-redis==0.6.8
- pip install pymongo==3.4.0
- ./redis-server redis.conf 客户端
- redis-cli -h 127.0.0.1 -p 6379 -a tdw@123
- ./mongod -f mongodb.conf 客户端
- ./mongo 127.0.0.1:27017/admin -u root -psa123
- scrapy crawl listspider
- redis-cli lpush listspider:start_urls "http://www.creprice.cn/market/dg/forsale/ALL/11.html"