mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-14 19:17:27 +00:00
e0daaefab6
mistakenly fetching and displaying artist information.
17 lines
246 B
Python
17 lines
246 B
Python
|
|
# shows album info for a URN or URL
|
|
|
|
import spotipy
|
|
import sys
|
|
import pprint
|
|
|
|
if len(sys.argv) > 1:
|
|
urn = sys.argv[1]
|
|
else:
|
|
urn = 'spotify:album:5yTx83u3qerZF7GRJu7eFk'
|
|
|
|
|
|
sp = spotipy.Spotify()
|
|
album = sp.album(urn)
|
|
pprint.pprint(album)
|