Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SunshowerC/lagou-spider-data-handle
拉勾数据处理,echarts数据可视化
https://github.com/SunshowerC/lagou-spider-data-handle
Last synced: 21 days ago
JSON representation
拉勾数据处理,echarts数据可视化
- Host: GitHub
- URL: https://github.com/SunshowerC/lagou-spider-data-handle
- Owner: SunshowerC
- Created: 2016-08-29T08:24:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-05T14:57:00.000Z (over 6 years ago)
- Last Synced: 2024-08-05T17:29:06.278Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 119 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-hacking-lists - SunshowerC/lagou-spider-data-handle - 拉勾数据处理,echarts数据可视化 (JavaScript)
README
# 拉勾爬虫echarts数据可视化
[拉勾爬虫](https://github.com/Weiyu-Chen/lagou-spider-node)的数据处理
## 前端页面设置
获取数据并处理:
```
chartModule.setModelName("modelName"); //modelName 为 爬取数据时对应的modelName; 即数据库对应集合
chartModule.init();
```##启动
1. npm install //安装依赖包;
2. node data-handle-app.js //启动服务
3. 打开前端页面参考demo: public/spider-chart.html
## 接口
```
method: GET
path: /analysis/modelName (modelName 为 爬取数据时对应的modelName; 即数据库对应集合)
callback data : {
cityEmploymentNum: {
'城市A': '招聘数量',
'城市B': '招聘数量',
...
},
cityEmploymentSalary:{
'城市A': '6k以下招聘数','6k-10k招聘数','10k-20k招聘数','20k以上招聘数','总体平均工资',
'城市B': '6k以下招聘数','6k-10k招聘数','10k-20k招聘数','20k以上招聘数','总体平均工资'
...
},
companySizeSalary: {
'城市A': [
{_id: '企业规模程度1',sum: '该规模企业招聘数', aveSalary:'该规模企业平均工资' },
{_id: '企业规模程度2',sum: '该规模企业招聘数', aveSalary:'该规模企业平均工资' },
...
],
'城市B': 同上,
...
},
workYearSalary:{
'城市A': [
{_id: '工作资历程度1',sum: '该工作资历招聘数', aveSalary:'该工作资历平均工资' },
{_id: '工作资历程度2',sum: '该工作资历招聘数', aveSalary:'该工作资历平均工资' },
...
],
'城市B': 同上,
...
},
employmentLabel: {
'关键词1': '出现次数',
'关键词2': '出现次数',
...
}
}
```