Easily Obtain Song & Lyrical Information In Python
A simple weekend project where we will explore how to obtain song lyrics from various artists in Python quickly. The lyrical data is obtained from Genius, and we will look at ways to utilise the LyricsGenius library to get the desired information.
Installation
Without further ado, let’s begin by installing the LyricsGenius library.
pip install lyricsgenius
Authentication
Once the library has been installed, we will have to generate an access token to utilise the endpoints.
To create a new API client, head to the following link: https://genius.com/api-clients and select “New API Client”. Here, you can fill up the necessary information, save, and generate an access token.
This access token would be used for authentication when using the LyricsGenius library.