# zhifou **Repository Path**: luzy99/zhifou ## Basic Information - **Project Name**: zhifou - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-03-06 - **Last Updated**: 2021-05-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 知否 后端框架 ## 文件结构 1. `weibo_spiders`为微博爬虫 2. `news_spiders`为新闻爬虫 3. `zhifou_server`为`django`后端服务器 `zhifou_server/myapp`为业务程序目录 ## 项目启动流程 ### 依赖安装 在根目录下运行 ``` shell pip install -r requirements.txt ``` ### 爬虫启动 1. 分别修改`weibo_spiders`和`news_spiders`中`setting.py`中的数据库密码 2. 运行`deploy_spiders.bat`部署爬虫项目 > 将自动启动``scrapydART` > > 访问http://127.0.0.1:6800/ 查看 3. 使用http://127.0.0.1:6800/schedule.json 接口启动爬虫,[API详见](https://scrapyd.readthedocs.io/en/stable/api.html) ### Django 服务器启动 1. 修改`zhifou_server\myapp\utils\connection.py`中的数据库密码 2. `cd`到外面的`zhifou_server`下,运行 ``` shell python manage.py runserver ``` 3. 可通过浏览器访问`127.0.0.1:8000/api/load_age?key=xxx`验证 > 详细 API 在`myapp/url.py`中查看