Skip to content

🔥 根据官方权威站点,获取省 / 市 / 县 / 镇 / 街道等全面的地域数据,采用 Python 抓取 💥 但西祠代理似乎不能使用了,可尝试修改其它代理进行处理 👊

License

Notifications You must be signed in to change notification settings

lirongtong/miitvip-official-regions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

官方权威地域数据 - Python 一键搞定

当前代码获取的是截止至 2019-12-31 的数据

地址为:http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2019/

代理地址采用的是西祠代理(似乎不能访问了):https://www.xicidaili.com/nn/

// 最后获取的数据格式为 JSON
// 省份 / 城市 ... 区分开, 各自单独一个文件保存
{
    "110100000000":[
        {
            "code":"110101000000",
            "name":"东城区",
            "parent":"110100000000"
        }
    ]
    // ...
}

// 若要封装成其它数据,请自行修改(比如 MySQL 语句等)

About

🔥 根据官方权威站点,获取省 / 市 / 县 / 镇 / 街道等全面的地域数据,采用 Python 抓取 💥 但西祠代理似乎不能使用了,可尝试修改其它代理进行处理 👊

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages