pip
Note thatsudo
may be required to install depending on your system setup. If any permission errors occur, please use the sudo flags.This package can easily be installed with one ofpip
orpip3
as follows:
pip
version matches that of Python.pip3
to Python 3.x+, so pip3
can be used if your system has this installed. (pip
will, in this case, be associated with Python 2.7.x)Alternatively, you can install directly (ensurepython3 --version
is 3.6 or greater):
From Source (slower/manual way):
Testing the package (optional):
lyricsfinder
as normal within your project.lyrics
is a Lyrics
instance (see below).json.dump
on the dict that is returned by calling to_dict()
.LyricsOrigin
and Lyrics
classes, which we discuss below.LyricsOrigin
model class contains the following attributes:query
, url
, source_name
, source_url
Lyrics
model class contains the following attributes: title
, lyrics
, origin
, timestamp
lyrics
contain newline parsed lyrics, the origin
contains the query
which was searched for, the source_name
from one of the listed sources in the above chart (such as Genius), the source_url
which contains the base URL of the source, and the url
contains the direct link for the track lyrics on the given source. The timestamp
is a standard UNIX timestamp from the request time and the title
is the parsed title of the track in question.Please see the example of an implementation of this at the bottom of this README.
An example of the live implementation of GiTils' lyrics blueprint from the source in action: https://gitils.giesela.io/lyrics/substance%20therapy