Zero-code access to the 5th-level administrative district codes of provinces, cities, counties, and villages of the National Bureau of Statistics

1. Administrative division code

The administrative division code is a substitute code for the compilation of administrative divisions at each level compiled by the state by means of information technology for grading and stratifying the administrative jurisdiction areas that can be ruled by the state. Generally, two national standards are implemented:

One is the "Administrative Division Code of the People's Republic of China" (GB/T2260-80, 82, 84, 86, 88, 91, 1995, 1999, 2002, 2007, a total of ten written standards). digital composition.

The first and second digits represent the first-level provincial administrative divisions in my country (covering provinces, autonomous regions, municipalities directly under the Central Government and special administrative regions);

The third and fourth digits represent prefecture-level administrative divisions (covering provincial administrative regions, prefecture-level cities, autonomous prefectures, regions, and leagues);

The fifth and sixth digits represent county-level administrative divisions (covering municipalities directly under the Central Government and prefecture-level cities, prefecture-level municipal special zones, forest areas, mining areas, industrial and mining areas, industrial and agricultural areas, counties, county-level cities, autonomous counties, banners, and autonomous banners , county-level towns, islands and reefs and their sea areas).

The codes of administrative districts above the county level can be obtained directly from the website of the Ministry of Civil Affairs.

The second is the "Rules for the Compilation of Codes for Administrative Divisions Below the County" (GB/T10114-2003), which is composed of 9-digit code length Arabic numerals.

The first and second digits represent the provincial level (including provinces, autonomous regions, municipalities directly under the central government, and special administrative regions).
The third and fourth digits indicate the prefecture level (including the summary codes of administrative districts under the jurisdiction of provinces, prefecture-level cities, autonomous prefectures, regions, leagues, and municipalities directly under the central government, and counties and county-level administrative divisions directly under the central government of provinces or autonomous regions). Among them, 01-20 and 51-70 represent provinces and municipalities directly under the Central Government; 21-50 represent regions (autonomous prefectures, leagues). 90 represents the summary code of county-level administrative divisions directly under the central government of a province or autonomous region.
The fifth and sixth digits represent the county level (district under the jurisdiction of the city, county-level city, banner). 01-20 means county-level cities under the jurisdiction of municipal districts or regions (autonomous prefectures, leagues); 21-70 means counties (banners); 81-99 means county-level cities under provincial jurisdiction; 71-80 means industrial parks or economic development zones.
The seventh to ninth digits represent townships and towns (sub-district offices). Among them, 000-099 means sub-district office, 100-199 means town, 200-299 means township, 400-479 means forest farm, pasture, science and technology city, park, 480-499 means forestry administration, 500-579 means farm, regiment, 580-599 represent livestock farms.

If you are developing and often use the administrative division data of townships, streets or even administrative villages and communities, you may use the second national standard. It is usually crawled from the National Bureau of Statistics through crawler code.

2. Use software tools to capture the five-level administrative district codes of provinces, cities, counties, and villages

If you are a code novice, this method is very suitable for you. Go to the Internet to download tools such as Octopus, Houyi, Locomotive, etc. The free version is enough. By creating a circular method, the next layer of links in provinces, cities, counties, and villages are captured layer by layer, and the data of each linked web page is captured. Simple and fast. The result is as follows. For more data, please go to https://t.zsxq.com/05RRNbYFq or https://m.tb.cn/h.U1m9uFn?tk=b4Ya2EXv51T CZ3457 "[Code of the 5th National Administrative District of Provinces, Cities, Counties, and Rural Areas]"

bafd0571d9ee41b98f218e18b1de3487.png

92d3737abc984365b5b69760820afbe2.png

Guess you like

Origin blog.csdn.net/heroyuan2011/article/details/126677207
Recommended