spotipy/examples/show_album.py
Jesse Ward e0daaefab6 Fixed show_album example to retrieve album data. This example was
mistakenly fetching and displaying artist information.
2016-06-13 01:10:45 -04:00

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)