Skip to main content

A Python library for crawling and retrieving all notices published under Japan’s Furikome Sagi Relief Act, with support for both full data extraction and incremental updates.

Project description

sagikoza

A Python library for crawling and retrieving all notices published under Japan’s Furikome Sagi Relief Act, with support for both full data extraction and incremental updates.

Installation


sagikoza is available on pip installation.

$ python -m pip install sagikoza

GitHub Install

Installing the latest version from GitHub:

$ git clone https://github.com/new-village/sagikoza
$ cd sagikoza
$ python setup.py install

Usage

This section describes how to use this library.

Get a specific year's notice

Fetch notices published under the Furikome Sagi Relief Act from 2008 onwards. Returns the notices for the year passed as an argument as 'YYYY'.

>>> import sagikoza
>>> mule_accounts = sagikoza.fetch('2025')
>>> print(mule_accounts)
[{'doc_id': '12345', 'link': '/pubs_basic_frame.php?inst_code=1234&p_id=06&pn=123456&re=0', 'id': '1234-5678-9012', 'process': '債権消滅手続開始', 'bank_name': '大江戸銀行', 'branch_name': '丸の内支店', 'branch_code': '234', 'type': '普通預金', 'account': '1234567', 'name': 'カ)エドムラサキ'}, ... ]

Get a last 3 monthes notice

Fetch notices published under the Furikome Sagi Relief Act during the most recent three-month period.

>>> import sagikoza
>>> mule_accounts = sagikoza.fetch()
>>> print(mule_accounts)
[{'doc_id': '12345', 'link': '/pubs_basic_frame.php?inst_code=1234&p_id=06&pn=123456&re=0', 'id': '1234-5678-9012', 'process': '債権消滅手続開始', 'bank_name': '大江戸銀行', 'branch_name': '丸の内支店', 'branch_code': '234', 'type': '普通預金', 'account': '1234567', 'name': 'カ)エドムラサキ'}, ... ]

Referece

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

sagikoza-0.2.1.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sagikoza-0.2.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file sagikoza-0.2.1.tar.gz.

File metadata

  • Download URL: sagikoza-0.2.1.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for sagikoza-0.2.1.tar.gz
Algorithm Hash digest
SHA256 97650424b8c3429b1f8e284fc21a05e389369f045b08382d986fc2f605bd8af8
MD5 40ecc84eefdaa7208065bf82f3b46e7a
BLAKE2b-256 ba327e133edd16fad5e88985969dc1b71ded0fc3efe2ce5388266a51b3e4ffab

See more details on using hashes here.

File details

Details for the file sagikoza-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: sagikoza-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for sagikoza-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6142d888db5eb4dbeac0a4e344402ae5f09f80a65098e3260638ab21df0ad7f6
MD5 fdac40d6e050b41d2aacc6b0e582ade2
BLAKE2b-256 6ae63a31b0256113dcffc514c3aedbde11e5a546fd8f736ffcfdbd1183bf9e3e

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