An user-friendly web application that allows users to see their favorite artists' songs on Spotify and links to their lyrics on Genius. Genify = Genius + Spotify Please visit The Genify Web for more info.
Make sure you have Python 3.9 installed locally and install the Heroku CLI in your working directory.
Login to your heroku account using this command.
$ heroku login -i- Login or Sign Up: Spotify Dashboard
- When creating a New App, make sure you know your Client ID and Client Secret.
- Learn more about Spotify APIs at Spotify Web API
For this project, we only use one-time generate access token from Genius APIs:
- Fill up information in Genius APIs Client management page - you can choose random websites for test purposes.
- Make sure you hit the Generate Access Token button and include it with the Spotify info above value into the .env file (which we will go on later).
Clone this repo and download all the packages inside requirements.txt
$ git clone https://github.com/Bodisoem/genify.git
$ cd genify/
$ pip install -r requirements.txtCreate .env file which contain your Spotify Client ID, Client Secret, and Genius Access Token. Format of the file should look like this
export SPOTIFY_CLIENT_ID="your_client_id"
export SPOTIFY_CLIENT_SECRET="your_client_secret"
export GENIUS_ACCESS_TOKEN="your_genius_access_token"Now create your heroku app with
$ heroku create
$ git add --all
$ git commit -m 'my first app'
$ git push heroku masterThis app is not finish yet, I try to make search feature where user can look for an random song from their input artist's name. This process demand a good amount of Flask knowledge. Currently, I am trying FlaskWTF (wtforms) which can handle user input. Then I will use the Spotify API. Specially the Search for Item API in order to get artist id and print out his/her top track.
GET https://api.spotify.com/v1/search