Skip to main content

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

Author

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.

Source Distribution

estat-1.2.1.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file estat-1.2.1.tar.gz.

File metadata

  • Download URL: estat-1.2.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for estat-1.2.1.tar.gz
Algorithm Hash digest
SHA256 2a1d7de7e4dacb928f2abaccb34be5e27e10a2d384bcf4cd8a7ca9f29b0af5f9
MD5 f445d9997a4eaab32965043fc8a5d87b
BLAKE2b-256 3ef5da9ecefe9694992552d534b2392e332ac31debea049dce61b6d4cc455cc4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page