Skip to main content
https://drone.io/github.com/drillbits/nhk-api/status.png

Python client for NHK API.

Requirements

  • Python 3.3

Installation

$ pip install nhk-api

Usage

from datetime import date
from nhk import ProgramGuide


client = ProgramGuide(api_key='YOUR_API_KEY')

# Get program list
# http://api-portal.nhk.or.jp/doc_list-v1_con
program_list = client.pg_list('130', 'g1', date.today())
# or
# program_list = client.pg_list('東京', 'NHK総合1', date.today())

# Get program list by genre
# http://api-portal.nhk.or.jp/doc_genre-v1_con
program_list_by_genre = client.pg_genre('130', 'g1', '0700', date.today())
# or
# program_list_by_genre = client.pg_genre('東京', 'NHK総合1', 'アニメ/特撮(国内アニメ)', date.today())

# Get program information
# http://api-portal.nhk.or.jp/doc_info-v1_con
program_info = client.pg_info('130', 'g1', '2014021499999')
# or
# program_info = client.pg_info('東京', 'NHK総合1', '2014021499999')

# Get information of program that is broadcasting now
# http://api-portal.nhk.or.jp/doc_now-v1_con
program_now = client.pg_now('130', 'g1')
# or
# program_now = client.pg_now('東京', 'NHK総合1')

Metadata

Release files for nhk-api 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for nhk-api 0.0.2
File Interpreter ABI Platform Actions
nhk_api-0.0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details for nhk_api-0.0.2-py2.py3-none-any.whl

Release files / nhk_api-0.0.2-py2.py3-none-any.whl

Download URL nhk_api-0.0.2-py2.py3-none-any.whl
Size 8.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
87e9f0ebfe53d52010d18d8d770ade6580170340a6dc2e2ff5206bffcf57ccd5
BLAKE2b-256 checksum
How to use checksums
9be928761664aeb114797610a8f183b53941538e960765ec942e952ba79f7c20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for nhk-api 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page