Skip to content

Commit

Permalink
Upgrade 2019-03-30 data.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 1, 2020
1 parent 81c6502 commit 14cb636
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

来自中华人民共和国民政部,用于查询中国省,市和区数据的网站。

- [中华人民共和国行政区划代码,更新时间:2020-03-06](http://www.mca.gov.cn/article/sj/xzqh/2020/)
> ⚠️ 2020-03-30 新增一个街道,街道数据暂未更新。
- [中华人民共和国行政区划代码,更新时间:2020-03-30](http://www.mca.gov.cn/article/sj/xzqh/2020/)
- [统计用区划和城乡划分代码,更新时间:2020-02-25](http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/)

### 数据更新 Diff
Expand Down
2 changes: 1 addition & 1 deletion script/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ exports.getProvinceCity = () => {
return new Promise(async (resolve, reject) => {
try {
console.log('=> 获取省市区数据')
const res = await request.get('http://www.mca.gov.cn/article/sj/xzqh/2020/2020/202003061536.html');
const res = await request.get('http://www.mca.gov.cn/article/sj/xzqh/2020/2020/202003301019.html');
if (!res || !res.text) return resolve([]);
const $ = cheerio.load(res.text);
const data = [];
Expand Down

0 comments on commit 14cb636

Please sign in to comment.