![]() ![]() Now for writing the code we need first to import the libraries needed for the script:Įnter fullscreen mode Exit fullscreen mode Name your python file spotify-app.py and save it to a location you can find it. You are free to use another IDE or text editor if you want to. Add your redirecting url and click on SAVE below.įor making the file where we write the Python code we use VSCODE as our Text editor. Enter your local Google link here (I live in the Netherlands so my url I use is ). ![]() On your Dashboard, click on EDIT SETTINGS and go to Redirect URIs. Lastly, you need to add a link that re-direct you to a page that you need to authenticate your Spotify app. Quick note: Do not share your client secret with other people. You will see your Client ID and Client Secret which you will need to use the application. Go to the Dashboard for Spotify developers and login with your Spotify account.Īfter you have login with your Spotify account you will see this dashboard:Ĭlick on CREATE A CLIENT ID and follow the steps that are instructed on the page.Īfter you have created your app you will see the dashboard of your Spotify application. To do this enter the following command in your terminal:Īfter you have installed the library you need to get a client ID and client secretof Spotify in order to use their API. You also need to install the Spotipy library. Follow the instructions given on the page and install it. Go to Python Foundation and download and install Python. ![]() You first need to install Python to use the application. Two days ago I mentioned in my previous post I was experimenting with the Spotipy libray and had struggles about how to use the library and what type of application I should make.Īfter digging around the docs and googling what type of projects you can make I found a very interesting project where you can make a Python script that shows the album art and play the song on Spotify using the terminal. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |