GithubHelp home page GithubHelp logo

chrunlee / citys Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8 KB

国家统计局**行政区划数据抓取-mysql简化版本,来自 https://github.com/modood/Administrative-divisions-of-China

License: MIT License

JavaScript 100.00%

citys's Introduction

citys

国家统计局**行政区划数据抓取-mysql简化版本,源代码来自 https://github.com/modood/Administrative-divisions-of-China

说明

代码基本来自与https://github.com/modood/Administrative-divisions-of-China, 由于本身存储数据库为sqllite,这里把数据存储部分更改为mysql。

运行

安装

npm i

修改数据库链接

/lib/sql.js 

执行抓取

npm run fetch

查看结果

由于数据库设计比较简单,关联关系都没有增加,目前在存储的时候也没有做唯一性校验,所以抓取时候请注意,第二次请清空数据再执行。

其他

如果想要抓取其他年份的数据,则可以在crawler.js文件中path中修改对应的年度。

citys's People

Contributors

chrunlee avatar

Watchers

 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.