weboob.capabilities.lyrics

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

Bases: weboob.capabilities.base.BaseObject

Song lyrics object.
Variables:
  • title – (unicode) Title of the song
  • artist – (unicode) Artist of the song
  • content – (unicode) Lyrics of the song
class weboob.capabilities.lyrics.CapLyrics

Bases: weboob.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]