In this project i try to access to the Spotify song of a user and then get those song's name and artist then convert it to Youtube MP3 because Spotify Free won't allow you to donwload their song's. I used flask to set up some endpoints and using OAuth to iteract with Spotify API to get the access to user's playlist
python setup.py install
-
Go to Spotify Developer click "Dashboard", log in to your Spotify account then click create an app an name that app some random thing ( it doesn't matter ).
-
Then click "edit setting" and paste these 4 links in the Redirect URIs:
Doing this will help spotify know where to redirect the user back when the done talking -
Then copy your app clientid and clientsecret and paste in it the SpotifyOAuth object in the create_sp_oauth() inside of app.py. Don't show anyone the clientsecret cause they can access to your data.
flask run
python downloadvideos.py
There you go!!!