Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Download data from Japanese Government Statistics and save it as CSV format files

Project description

estat

Download data from Japanese Government Statistics and save it as CSV format files.
各府省等が公表する統計データがまとめられた政府統計の総合窓口(e-Stat)からデータをダウンロードし、CSV形式のファイルに保存します。

How to use

  • First you must get appID from e-Stat site from here (https://www.e-stat.go.jp/). まずe-Stat (https://www.e-stat.go.jp/)からappIDを取得します

  • Next do the followings.
    次に下記のコマンドを実行します。
    >>> import estat
    >>> estat.download()
    
    You can find csv format files in $HOME/estat/data-cache.
    $HOME/estat/data-cache ディレクトリにCSV形式のデータファイルが生成されます。

If you want to change estat directory from $HOME/estat, do the following.

>>> estat.download(directory='/home/hoge/data/estat/')
If you cannot download the CSV format files,
check the appID and curl settings in ~/.curlrc or /etc/.curlrc for your proxy server settings.
$ cat proxy ~/.curlrc

License

Licensed under the MIT license.

Remarks

This program is created referring to this site

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for estat, version 1.2.1
Filename, size File type Python version Upload date Hashes
Filename, size estat-1.2.1.tar.gz (5.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page