arthurdejong / python-stdnum

A Python library to provide functions to handle, parse and validate standard numbers.
https://arthurdejong.org/python-stdnum/
GNU Lesser General Public License v2.1
498 stars 206 forks source link

Update stdnum/cn/loc.dat #243

Open WouterEekhout opened 3 years ago

WouterEekhout commented 3 years ago

Can you please update stdnum/cn/loc.dat. It is not complete. For instance code 44200 is missing and it is in: https://github.com/cn/GB2260/blob/develop/stats/201810.tsv

arthurdejong commented 3 years ago

Sorry for taking so long to respond. The data files are normally only updated right before a release.

The update script that is used currently uses the release branch of the GB2260 repository to download data from which was last updated last 5 years ago. The develop branch was updated 2 years ago but has a pretty different layout.

The preferred option would be to get the data from the source directly but I get errors for the two URLs on the GB2260 repo (http://www.stats.gov.cn/tjsj/tjbz/xzqhdm/ and http://www.mca.gov.cn/article/sj/tjbz/a/).

It seems that https://github.com/cn/GB2260.py is maintained somewhat but it also uses the release branch (an old version of that branch).

Advice on how to proceed would be welcome.