mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-01-06 14:52:50 +00:00
update user_playlists_contents.py
removed unused os import and unused variable 'top'
This commit is contained in:
parent
7499d8e511
commit
6c572ff5cd
@ -1,7 +1,6 @@
|
|||||||
# shows a user's playlists (need to be authenticated via oauth)
|
# shows a user's playlists (need to be authenticated via oauth)
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
|
||||||
import spotipy
|
import spotipy
|
||||||
import spotipy.util as util
|
import spotipy.util as util
|
||||||
|
|
||||||
@ -22,7 +21,6 @@ if __name__ == '__main__':
|
|||||||
token = util.prompt_for_user_token(username)
|
token = util.prompt_for_user_token(username)
|
||||||
|
|
||||||
if token:
|
if token:
|
||||||
top = 40
|
|
||||||
sp = spotipy.Spotify(auth=token)
|
sp = spotipy.Spotify(auth=token)
|
||||||
playlists = sp.user_playlists(username)
|
playlists = sp.user_playlists(username)
|
||||||
for playlist in playlists['items']:
|
for playlist in playlists['items']:
|
||||||
|
Loading…
Reference in New Issue
Block a user