Giter VIP home page Giter VIP logo

national-data's Introduction

国家统计局数据抓取器

数据来自国家统计局的国家数据网站

http://data.stats.gov.cn/index.htm

年鉴数据

直接使用

即网站的年度数据,在data/zb下有可以直接使用的所有指标的1978-2014年的csv文件(现在可以抓2015年数据了, 不过不重复上传到GitHub上,可以用下面的gbk版或自己运行。) ,当然特定时候没值就是空。

Excel可能对这里使用的无BOM UTF8编码处理有问题而导致乱码。如遇问题,可修改命令行中的--encoding选项 为gbk或者使用我另外转的1978-2015年数据gbk编码版 (就不重复上传占仓库大小了)。

使用脚本

$ python main.py --type year --date 1978-2015 --encoding utf-8

另外吐槽一下其实数据没压缩也才10+Mb。那些统计年鉴都是塞了一堆图才那么大的。

national-data's People

Contributors

yiyuezhuo 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.