woob.capabilities.lyrics
¶
- class SongLyrics(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
Song lyrics object.
- Variables
url – (
str
) urltitle – (
str
) Title of the songartist – (
str
) Artist of the songcontent – (
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
]