In this video I show how you can make a Python app to automatically save all the songs from your discover weekly playlist. Though I build this specific app, this video should give you enough information about the Spotify API that you can use it to make any app of your choice.
NOTE: The spotify API has changed the ‘Create Client ID’ button to ‘Create an App’, this has the same functionality overall.
Source Code:
Authorisation Docs
QUICK START OAUTH
URL encoder
Base64 encoder
Get playlist tracks
Create playlist
Add items to playlist