Coder Social home page Coder Social logo

admindzl / administrative-division-crawler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abbreviation-g/administrative-division-crawler

0.0 0.0 0.0 27.57 MB

从中华人民共和国民政部爬虫获取省市县行政区划并保存到数据库

License: Apache License 2.0

Java 100.00%

administrative-division-crawler's Introduction

administrative-division-crawler

从中华人民共和国民政部爬虫获取省市县行政区划并保存到数据库
民政部

如果要重新爬虫获取省市县行政区划数据并初始化数据库,则按以下方式执行

如果使用命令行直接运行jar文件,则使用java -jar administrative-division-crawler-0.0.1-SNAPSHOT.jar --spring.profiles.active=init.
如果使用开发工具,运行ServiceMainApplication.java文件启动,则增加参数--spring.profiles.active=init

提供三个combox接口,用于获取省市县三级联动的下拉框数据

省级下拉框 http://localhost:8763/province/combox
地级下拉框 http://localhost:8763/prefecture/combox?pid=3 (当参数为空时返回所有地级行政区)
县级下拉框 http://localhost:8763/county/combox?pid=1 (当参数为空时返回所有县级行政区)

爬虫方法如下图

获取省级行政区数据 avatar 获取地级行政区数据 avatar 获取县级行政区数据 avatar

administrative-division-crawler's People

Contributors

abbreviation-g avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.