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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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