Fetch the repository succeeded.
This action will force synchronization from ecitlm/Node-SpliderApi, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
项目基于
express
+sequelize
+mysql
+express-validator
基于node+express爬虫 API接口项目,包括全国高校信息、成语诗歌、星座运势、历史的今天、音乐数据接口、图片壁纸、搞笑视频、热点新闻资讯 详情接口数据
express-validator
参数表单校验cheerio
解析爬虫页面ejs
模板swaggerUI
接口文档nodemon
项目开发动态热更新dotenv
管理配置系统参数log4js
错误日志收集需要安装
node
环境,mysql
数据库
$ git clone https://github.com/ecitlm/Node-SpliderApi.git
$ npm install
# start project dev
$ npm run dev
# starting prd
$ npm run prd
#localhost:3001
在服务器中使用
pm2
对node
服务进行进程守护
#启动进程/应用
pm2 start npm --watch --name tools -- run prd
pm2 restart tools
pm2 stop tools
pm2 delete tools
mysql
中包含、唐诗300、成语、历史的今天、星座运势(聚合平台数据-需要申请自己的APPCODE)、用户表等数据 项目目录bak-file
文件夹可查看
启动项目之后
http://localhost:3001/api-docs/
可查看接口文档页面
状态码 | 含义 | 备注 |
---|---|---|
200 | 响应正常 | |
1001 | 参数无效、如一个不存在的id | |
1002 | 参数为空、验证不通过、参数类型错误 | |
1003 | 请求签名异常、非法 | |
404 | 请求不存在 | |
405 | 请求方式错误 | |
9999 | 第三方接口请求异常 | |
500 | 系统异常 |
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。