You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a python script which connects to the spotify API and integrates
OAuth. Use OAuth to authenticate with Spotify, get an access token and
store it in a Flask session retrieving spotify user data from token.
Its an application which allows the user to automate saving the "Discover Weekly" Playlist into a new playlist called as- "Saved Weekly". Since new songs are added every week, the user wont have to add songs everytime.
5
+
6
+
# Prerequisite tasks:
7
+
1. Make sure you have made the "Discover Weekly" Playlist public by selecting the playlist to be displayed on profile.
8
+
9
+
2. Browse to https://developer.spotify.com/dashboard/applications.
10
+
11
+
3. Log in with your Spotify account.
12
+
13
+
4. Click on ‘Create an app’.
14
+
15
+
5. Pick an ‘App name’ and ‘App description’ of your choice and mark the checkboxes.
16
+
17
+
6. After creation, you see your ‘Client Id’ and you can click on ‘Show client secret` to unhide your ’Client secret’
18
+
19
+
# Getting Started
20
+
21
+
1. Install the dependencies via the requirements txt file:
22
+
23
+
$ pip install -r requirements.txt
24
+
25
+
2. After installation, Update the client_id and secret_key in the configuration file to authenticate the spotipy api
26
+
27
+
3. After updation run the file spotify_discover_weekly.py in the terminal
28
+
29
+
4. Click on the link which is generated. It is basically running the app on the port locally.
0 commit comments