Using an API to Print Your Favorite Song Lyrics

Grabbing song lyrics using an api is easier then you may think. Not only can you have them right away on your computer, but then you can download them too.

To get started, import the necessary libraries

The API is from api.lyrics.oh. Set your variables for the artist and song you want.

Then using the requests library, you can use the API and retrieve your song’s lyrics.

Running the print statement will print the lyrics in a few lines.