- [功能描述]:分布式或者单机爬取全国历史天气2011-未来历史天气
- [环境依赖]:
scrapy_redis==0.6.8
demjson==2.2.4
redis==2.10.6
Scrapy==1.5.1
PyMySQL==0.7.11
pymongo==3.7.2
tianqi
├── Dockerfile
├── README.md
├── requirements.txt
├── run.py
├── scrapy.cfg
└── tianqi
├── __init__.py
├── items.py
├── middlewares.py
├── pipelines.py
├── settings.py
└── spiders
├── __init__.py
├── tq.py
└── tq_utills.py
`pip install -r requirements.txt`
`tianqi/tianqi/settings.py`
mysql -uroot -p > weather.sql
`scrapy crawl tq`
`lpush tq:start_urls http://tianqi.2345.com/js/citySelectData.js`
nohup python -u run.py > run.log 2>&1 &
docker build -t username/tianqi:latest .
docker run -d username/tianqi