Skip to content

Commit

Permalink
Update spotify_data_retrieval.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitmahajan095 committed Feb 16, 2023
1 parent 6ad5a7b commit da1d4c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spotify_data_retrieval.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Spotify Data Retrieval Script (prints the user's saved tracks, playlists & recently played tracks)
import spotipy
from spotipy.oauth2 import SpotifyOAuth

Expand Down Expand Up @@ -47,4 +48,6 @@

print("\nUser's recently played tracks: \n")
for track in recently_played:
print(f"{track['track']['name']} by {track['track']['artists'][0]['name']}")
print(f"{track['track']['name']} by {track['track']['artists'][0]['name']}")

#-by @mohitmahajan5824 (github)

0 comments on commit da1d4c6

Please sign in to comment.