https://github.com/dongweiming/daenerys
Scraping and Web Crawling Framework For Zhihu Live
https://github.com/dongweiming/daenerys
scraping web-crawling zhihu zhihulive
Last synced: 7 months ago
JSON representation
Scraping and Web Crawling Framework For Zhihu Live
- Host: GitHub
- URL: https://github.com/dongweiming/daenerys
- Owner: dongweiming
- License: apache-2.0
- Created: 2017-04-14T03:23:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-10T07:49:11.000Z (about 8 years ago)
- Last Synced: 2025-02-28T22:48:37.665Z (8 months ago)
- Topics: scraping, web-crawling, zhihu, zhihulive
- Language: Python
- Size: 13.7 KB
- Stars: 63
- Watchers: 7
- Forks: 30
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Getting started
```python
❯ git clone https://github.com/dongweiming/daenerys
❯ cd daenerys
❯ virtualenv venv
❯ source venv/bin/activate
❯ pip install -r requirements.txt
# 安装配置Redis和MongoDB
❯ cd demo
❯ python worker.py # 启动worker(默认5个进程)
❯ python beat.py # 新开启一个终端,启动Beat服务生成任务
❯ ipython # 发布一个需要获取执行结果的任务
In [1]: from messaging import sync_getIn [2]: sync_get('flask')
PUT flask
Out[2]:
{u'author': u'Armin Ronacher',
u'download_url': u'https://pypi.python.org/packages/24/6e/11b9c57e46f276a8a8da85a2fa7ada62b0463b68693616c7ab5df356fa/Flask-0.12.1.tar.gz',
u'name': u'flask',
u'version': u'0.12.1'}
```