Skip to main content

Japanese Lyric Aggregator

Project description

pyjlyric: Japanese Lyric Aggregator

PyPI Python Version Release Package Ghcr

pre-commit.ci status Maintainability Test Coverage

Supported sites

https://github.com/eggplants/pyjlyric/issues/4

Installation

pip install git+https://github.com/eggplants/pyjlyric
# or
pip install pyjlyric

Usage

CLI

$ jrc https://j-lyric.net/artist/a00126c/l013283.html
===
Title:          春よ来い
Artist:         童謡・唱歌
Lyric:          相馬 御風
Composer:       弘田 龍太郎
===
春よ来い早く来い
あるきはじめたみいちゃんが
赤い鼻緒のじょじょはいて
おんもへ出たいと待っている

春よ来い早く来い
おうちの前の桃の木の
蕾もみんなふくらんで
はよ咲きたいと待っている
$ jrc -h
usage: jrc [-h] [-V] url

get lyric data by URL.

positional arguments:
  url

options:
  -h, --help     show this help message and exit
  -V, --version  show program's version number and exit

supported sites:
  - ...

Library

import pyjlyric

pyjlyric.parse("https://kashinavi.com/song_view.html?155779")

Returns:

KashinaviLyricPage(
    title='Life goes on',
    page_url=HttpUrl('https://kashinavi.com/song_view.html?155779', ),
    pageid='155779',
    artist=WithUrlText(
        link=HttpUrl('https://kashinavi.com/artist.html?artist=104498&kashu=King+%26+Prince&start=1', ),
        text='King & Prince'
    ),
    composer='Joacim Persson・Johan Alkenas・SQVARE・Sean Michael Alexander',
    lyricist='木村友威',
    arranger=None,
    lyric_sections=[['Keep it up, keep it up yup'], [...], [..., "Let's live it up"]]
)

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

pyjlyric-1.1.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

pyjlyric-1.1.0-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file pyjlyric-1.1.0.tar.gz.

File metadata

  • Download URL: pyjlyric-1.1.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.0 Linux/5.15.0-1041-azure

File hashes

Hashes for pyjlyric-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7ca0ee04146c57527bbb3f1723baaf6883dc1de660c391e214aeae3e61c93a36
MD5 b477ded207092055d2d8eb36088bc660
BLAKE2b-256 1e559ede57d5214767402a568c7e3c43c2b7f5ee1a1bc8590a96c21f597d5d05

See more details on using hashes here.

File details

Details for the file pyjlyric-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyjlyric-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 30.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.0 Linux/5.15.0-1041-azure

File hashes

Hashes for pyjlyric-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16db71b20703b1c57855e2de0f48c3f8870c9b83dbe64f36f2bf7f1bf7fed1fc
MD5 8b5a19efce720ff264e644a3c531ad77
BLAKE2b-256 cbdb781dcb8238c28693a342a1724480e2290f3276b0220a73b3557375a0389d

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