1 | # zoning
|
2 | 中华人民共和国行政区划:省级、地级、县级、乡级和村级
|
3 |
|
4 | > Demo: <https://ss.netnr.com/zoning>
|
5 |
|
6 | ### [变更日志](CHANGELOG.md)
|
7 |
|
8 | 统计用区划和城乡划分代码
|
9 | <http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/>
|
10 |
|
11 | 统计数据截止 2021-10-31 于 2021-12-30 发布
|
12 | <http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2021>
|
13 |
|
14 | 共 5 级
|
15 |
|
16 | **0.json** 深度 1、2、3
|
17 | **1101.json** 深度 4、5
|
18 | **6590.json** 深度 4、5
|
19 |
|
20 | **stats-zoning-3.json** 爬虫三级总数据 就是 **0.json**
|
21 | **stats-zoning-4.json** 爬虫四级总数据
|
22 | **stats-zoning-5.json** 爬虫五级总数据
|
23 |
|
24 | ```
|
25 | npm install zoningjs
|
26 | ```
|
27 |
|
28 | 列信息
|
29 |
|
30 | 字段 | 类型 | 说明
|
31 | ---- | ---- | ----
|
32 | id | string | 区划代码,唯一
|
33 | txt | string | 名称
|
34 | pid | string | 父级区划代码
|
35 | sid | string | 简短区划代码,唯一
|
36 | spid | string | 简短父级区划代码
|
37 | ct | string | 城乡分类代码
|
38 | num | int | 同级排序
|
39 | leaf | int | 是叶节点(1:是;2:否)
|
40 | deep | int | 爬取深度
|
41 |
|
42 | > 爬取源码:https://github.com/netnr/stats
|
43 | > [联系打赏](https://netnr.eu.org) |
\ | No newline at end of file |