Skip to content

Commit

Permalink
feat: 国家统计局最新数据(截止时间:2023-06-30,发布时间:2023-09-11)
Browse files Browse the repository at this point in the history
  • Loading branch information
modood committed Sep 12, 2023
1 parent 001f661 commit 5739d76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@

## 数据来源

* 民政部、国家统计局:
* [中华人民共和国民政部-中华人民共和国行政区划代码](http://www.mca.gov.cn/article/sj/xzqh/)
* [中华人民共和国国家统计局-统计用区划和城乡划分代码](http://www.stats.gov.cn/sj/tjbz/tjyqhdmhcxhfdm/)
* 国家统计局:
* [中华人民共和国国家统计局-统计用区划和城乡划分代码](http://www.stats.gov.cn/sj/tjbz/qhdm/)
* [中华人民共和国国家统计局-统计用区划代码和城乡划分代码编制规则](http://www.stats.gov.cn/sj/tjbz/gjtjbz/202302/t20230213_1902741.html)
* 本项目已更新至:
* [2022年统计用区划代码和城乡划分代码(截止时间:2022-10-31,发布时间:2022-12-29](http://www.stats.gov.cn/sj/tjbz/tjyqhdmhcxhfdm/2022/index.html)
* [2023年统计用区划代码和城乡划分代码(截止时间:2023-06-30,发布时间:2023-09-11](http://www.stats.gov.cn/sj/tjbz/tjyqhdmhcxhfdm/2023/index.html)

## 数据下载

Expand Down
2 changes: 1 addition & 1 deletion lib/crawler.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const casReg = /<tr class='.*?'><td><a href=.*?>(.*?)<\/a><\/td><td><a href=.*?>
const vReg = /<tr class='.*?'><td>(.*?)<\/td><td>.*?<\/td><td>(.*?)<\/td><\/tr>/g

const host = 'www.stats.gov.cn'
const path = '/sj/tjbz/tjyqhdmhcxhfdm/2022/#{route}.html'
const path = '/sj/tjbz/tjyqhdmhcxhfdm/2023/#{route}.html'

/**
* 抓取数据
Expand Down

0 comments on commit 5739d76

Please sign in to comment.