Note: This script is updated for the current version of onsen.ag. Enjoy~
A python library for Onsen(音泉) API.
- Get current available program list
- Get information of program
- Download a program
pip install pipenv
pipenv install
from onsen_api import OnsenClient
# create a client
c = OnsenClient()
# get current available program list
l = c.program_list()
print(l['kokuradio'])
# download a program
m = c.get_program('kokuradio')
print(m.download_url)
print('start download')
m.download_latest()