woob.capabilities.lyrics

class woob.capabilities.lyrics.CapLyrics

Bases: woob.capabilities.base.Capability

Lyrics websites.

get_lyrics(_id)

Get a lyrics object from an ID.

Parameters

_id (str) – ID of lyrics

Return type

SongLyrics

iter_lyrics(criteria, pattern)

Search lyrics by artist or by song and iterate on results.

Parameters
  • criteria (str) – ‘artist’ or ‘song’

  • pattern (str) – pattern to search

Return type

iter[SongLyrics]

class woob.capabilities.lyrics.SongLyrics(id='', url=NotLoaded, backend=None)

Bases: woob.capabilities.base.BaseObject

Song lyrics object.

Variables
  • title – (str) Title of the song

  • artist – (str) Artist of the song

  • content – (str) Lyrics of the song