woob.capabilities.lyrics

class SongLyrics(id='', url=NotLoaded, backend=None)[source]

Bases: BaseObject

Song lyrics object.

Variables:
  • url – (str) url

  • title – (str) Title of the song

  • artist – (str) Artist of the song

  • content – (str) Lyrics of the song

class CapLyrics[source]

Bases: Capability

Lyrics websites.

iter_lyrics(criteria, pattern)[source]

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]

get_lyrics(_id)[source]

Get a lyrics object from an ID.

Parameters:

_id (str) – ID of lyrics

Return type:

SongLyrics