1 Star 0 Fork 2

Mark / miitvip-official-regions

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

官方权威地域数据 - 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 语句等)
MIT License Copyright (c) 2020 makeit.vip Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

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

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/xuhongxu/miitvip-official-regions.git
git@gitee.com:xuhongxu/miitvip-official-regions.git
xuhongxu
miitvip-official-regions
miitvip-official-regions
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891