amit-y11 / lyrics-api

Api to get lyrics of the songs by its title and artists name

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lyrics-api

DescriptionInstallationUsageLicense

Description

Api to get lyrics of the songs by its title and artists name
Currently it searches lyrics from azlyrics.com, more websites will be added in future

Sample response data:

{
    "status":true,
    "lyrics":"The club isn't the best place to find a lover\n
    So the bar is where I go (mmmm)\n
    Me and my friends at the table doing shots\n
    Drinking fast and then we talk slow (mmmm)\n
    And you come over and start up a conversation with just me\n
    And trust me I'll give it a chance now (mmmm)\n
    Take my hand, stop, put Van The Man on the jukebox\n ........"
}

Installation

Clone this repository using

git clone https://github.com/amit-y11/lyrics-api

Enter the directory and install all the requirements using

pip3 install -r requirements.txt

Run the app using

python3 app.py

Now the app is running on http://127.0.0.1:5000

Usage

http://127.0.0.1:5000/getlyrics/?title=<Enter title of the song>&artists=<Enter artists of the song>

Example: Navigate to http://127.0.0.1:5000/getlyrics/?title=shape%20of%20you&artists=ed%20sheeran to get JSON response of lyrics data in return

You can fork the repo and deploy on VPS or deploy it on Heroku 😊

Deploy

License

GNU GPLv3 Image

PicSplash is a Free Software: You can use, study, share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

About

Api to get lyrics of the songs by its title and artists name

License:GNU General Public License v3.0


Languages

Language:Python 100.0%