Thanks for aliCloud gave me half a year's server, So,I'm going to open up this interface, the domain name has been replaced, temporarily don't use HTTPS. Friends can then use!
English README
Data from 丁香园
This project is based on the nodejs-express framework, using regular expressions to crawl the page information
The data is updated every twenty minutes. Statistics are started at 10 o'clock in the morning on January 29th. Some data were not counted in the previous few days. I will find somewhere else in the later period to add to the database!
[Management background] (http://ncov.tanknee.cn/admin)
Login username:
demo
Login password:
demo
Template source: [lin-xin] (https://github.com/lin-xin/vue-manage-system)
Click on the second item in the left sidebar
GET
Intercepted only part of the data
"sumInfo": {
"id": 1559,
"confirmedCount": 7830,
"curedCount": 135,
"deadCount": 170,
"suspectedCount": 12139,
"addtime": 1580387755098
},
"provinceInfo": [
{
"id": 19270,
"provinceName": "湖北省",
"provinceShortName": "湖北",
"confirmedCount": 4586,
"suspectedCount": 0,
"curedCount": 90,
"deadCount": 162,
"addtime": 1580387755098,
"cities": [
{
"id": 176949,
"cityName": "武汉",
"provinceShortName": "湖北",
"confirmedCount": 2261,
"suspectedCount": 0,
"curedCount": 54,
"deadCount": 129,
"addtime": 1580387755098
},....
Parameter name | Parameter type | Remarks |
---|---|---|
provinceName | String | 省份全名 |
provinceShortName | String | 省份短名 |
cityName | String | 城市名称 |
confirmedCount | number | 确诊人数 |
suspectedCount | number | 疑似人数 |
curedCount | number | 治愈人数 |
deadCount | number | 死亡人数 |
addtime | number | 爬取时间 |
GET
GET
Parameter name | Parameter type | Remarks |
---|---|---|
province | String | 省份名称 |
all | String | 是否获取全部历史消息,默认为false |
POST
{
"provinceInfo": [
{
"id": 5944,
"provinceName": "浙江省",
"provinceShortName": "浙江",
"confirmedCount": 173,
"suspectedCount": 0,
"curedCount": 3,
"deadCount": 0,
"addtime": 1580224800003
}
],
"citiesOfProvince": [
{
"id": 47028,
"cityName": "温州",
"provinceShortName": "浙江",
"confirmedCount": 60,
"suspectedCount": 0,
"curedCount": 3,
"deadCount": 0,
"addtime": 1580224800003
},
{
"id": 47029,
"cityName": "杭州",
"provinceShortName": "浙江",
"confirmedCount": 32,
"suspectedCount": 0,
"curedCount": 0,
"deadCount": 0,
"addtime": 1580224800003
},
{
"id": 47030,
"cityName": "台州",
"provinceShortName": "浙江",
"confirmedCount": 22,
"suspectedCount": 0,
"curedCount": 0,
"deadCount": 0,
"addtime": 1580224800003
},
{
"id": 47031,
"cityName": "宁波",
"provinceShortName": "浙江",
"confirmedCount": 17,
"suspectedCount": 0,
"curedCount": 0,
"deadCount": 0,
"addtime": 1580224800003
},
{
"id": 47032,
"cityName": "嘉兴",
"provinceShortName": "浙江",
"confirmedCount": 11,
"suspectedCount": 0,
"curedCount": 0,
"deadCount": 0,
"addtime": 1580224800003
},
{
"id": 47033,
"cityName": "绍兴",
"provinceShortName": "浙江",
"confirmedCount": 7,
"suspectedCount": 0,
"curedCount": 0,
"deadCount": 0,
"addtime": 1580224800003
},
{
"id": 47034,
"cityName": "金华",
"provinceShortName": "浙江",
"confirmedCount": 7,
"suspectedCount": 0,
"curedCount": 0,
"deadCount": 0,
"addtime": 1580224800003
},
{
"id": 47035,
"cityName": "衢州",
"provinceShortName": "浙江",
"confirmedCount": 5,
"suspectedCount": 0,
"curedCount": 0,
"deadCount": 0,
"addtime": 1580224800003
},
{
"id": 47036,
"cityName": "丽水",
"provinceShortName": "浙江",
"confirmedCount": 5,
"suspectedCount": 0,
"curedCount": 0,
"deadCount": 0,
"addtime": 1580224800003
},
{
"id": 47037,
"cityName": "舟山",
"provinceShortName": "浙江",
"confirmedCount": 4,
"suspectedCount": 0,
"curedCount": 0,
"deadCount": 0,
"addtime": 1580224800003
},
{
"id": 47038,
"cityName": "湖州",
"provinceShortName": "浙江",
"confirmedCount": 3,
"suspectedCount": 0,
"curedCount": 0,
"deadCount": 0,
"addtime": 1580224800003
}
]
}
Parameter name | Parameter type | Remarks |
---|---|---|
provinceName | String | 省份全名 |
provinceShortName | String | 省份短名 |
cityName | String | 城市名称 |
confirmedCount | number | 确诊人数 |
suspectedCount | number | 疑似人数 |
curedCount | number | 治愈人数 |
deadCount | number | 死亡人数 |
addtime | number | 爬取时间 |
Parameter name | Parameter type | Remarks |
---|---|---|
province | String | 省份名称 |
all | String | 是否获取全部历史消息,默认为false |
POST
[
{
"id": 46994,
"cityName": "武汉",
"provinceShortName": "湖北",
"confirmedCount": 1590,
"suspectedCount": 0,
"curedCount": 47,
"deadCount": 85,
"addtime": 1580224800003
}
]
Parameter name | Parameter type | Remarks |
---|---|---|
provinceShortName | String | 省份短名 |
cityName | String | 城市名称 |
confirmedCount | number | 确诊人数 |
suspectedCount | number | 疑似人数 |
curedCount | number | 治愈人数 |
deadCount | number | 死亡人数 |
addtime | number | 爬取时间 |
## git clone from github
git clone git@github.com:TankNee/nCoV-2019-DataAPI.git
## cd file folder
cd nCoV-2019-DataAPI
## install dependencies
npm install
## start the server
npm run start
## open in browser
## open http://localhost:6879/ in browser