JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 28876
  • Score
    100M100P100Q138268F
  • License MIT

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

Package Exports

  • zoningjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zoningjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

zoning

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

变更日志

来源

使用

  • 打开页面 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm
  • 打开浏览器控制台(推荐Chrome、Firefox,请不要用IE系列,谢谢)
  • 拷贝脚本zoning.js的内容粘贴到控制台运行
  • 首次抓取会出现大量失败请求,再次抓取会从浏览器缓存获取,非常快
  • Chrome比较快,会出现几个链接抓取失败
  • Firefox比较稳定,抓取有保障,内存占用高(推荐,测试版本:61.0.2 64-bit)
  • build.html用于导出的JSON文件生成SQLiteCSV
  • CSV导出编码为utf-8,Excel打开中文会乱码,需要转换编码为ANSI指定BOM

发布

  • 支持的格式有:JSON文件、SQLite数据库、CSV文件、SQL脚本
  • zoning-*.json所有数据, zoning-*.dbSQLite数据库, zoning-*.csvCSV文件,zoning-*.sqlSQL脚本
  • dist/zoning-5 五级
  • dist/zoning-4 四级
  • dist/zoning-3 三级

联系打赏