Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zoningjs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zoningjs

中华人民共和国行政区划:省级(省份直辖市自治区)、 地级(城市)、 县级(区县)、 乡级(乡镇街道)、 村级(村委会居委会)

  • 2.2023.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

zoning

中华人民共和国行政区划:省级、地级、县级、乡级和村级

Demo: https://ss.netnr.com/zoning

变更日志

统计用区划和城乡划分代码
http://www.stats.gov.cn/sj/tjbz/qhdm/

统计数据截止 2023-06-30 于 2023-09-11 发布
http://www.stats.gov.cn/sj/tjbz/tjyqhdmhcxhfdm/2023/

共 5 级

0.json 深度 1、2、3
1101.json 深度 4、5
6590.json 深度 4、5

stats-zoning-3.json 爬虫三级总数据 就是 0.json
stats-zoning-4.json 爬虫四级总数据
stats-zoning-5.json 爬虫五级总数据

npm install zoningjs

列信息

字段类型说明
idstring区划代码,唯一
txtstring名称
pidstring父级区划代码
sidstring简短区划代码,唯一
spidstring简短父级区划代码
ctstring城乡分类代码
numint同级排序
leafint是叶节点(1:是;2:否)
deepint爬取深度

爬取源码 (路径可能会失效,但源码始终在该账号的某个项目中)
https://github.com/netnr/np/tree/main/src/Netnr.P/Netnr.ClientApp/ClientSpider

联系打赏

Keywords

FAQs

Package last updated on 16 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc