Skip to main content

requests wrapper library for obtaining book information from the Japan National Diet Library.

Project description

Jpndlpy: HTTP Client for the Japan National Diet Library API.

image image image

jpndlpy is a requests wrapper library for obtaining book information from the Japan National Diet Library.

Description

jpndlpy is gets information from opensearch provided by the Japan National Diet Library, and The obtained data is converted to json format.

Installation

How to install jpndlpy

$ python setup.py install
$ pip3 install jpndlpy

Usage

How to Use

sample code

jndlclient = JapanNdlClient()
# jndlclient.search_text(title="test", cnt=1, from_date="2018-1*22", until_date="tee")
# jndlclient.search_text(title="test", cnt=1, from_date="2018-1-22")
response = jndlclient.search_text(title="python", cnt=2)

print(response.to_json())

Documentation

Licence

BSD-2-Clause

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

jpndlpy-0.2.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

jpndlpy-0.2.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file jpndlpy-0.2.0.tar.gz.

File metadata

  • Download URL: jpndlpy-0.2.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for jpndlpy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 24dd45048742583bb3d0d944c83418bcd6784ce78011988c91625db501484463
MD5 63b50146fbc27491301ad6e5a7144788
BLAKE2b-256 0cc35b40746ce459415491e2ed5c8f224a7ab36b6f2806d08a954b7f7339aa44

See more details on using hashes here.

File details

Details for the file jpndlpy-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: jpndlpy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for jpndlpy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4d3588fb99aa82793ce4acdb336b7a5f544abd98905a68801d245d59da7f395
MD5 fa7d4182d3b1052ae2cb7035d398d6f7
BLAKE2b-256 3b063fe40590f9aa702538ea5ef38bbac64f4c1315c2b1026226497a46c30a06

See more details on using hashes here.

Supported by

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