mirror of
https://github.com/c0de-archive/spotipy.git
synced 2024-11-05 07:27:47 +00:00
16 lines
245 B
Python
16 lines
245 B
Python
|
# shows track info for a URN or URL
|
||
|
|
||
|
import spotipy
|
||
|
import sys
|
||
|
import pprint
|
||
|
|
||
|
if len(sys.argv) > 1:
|
||
|
urn = sys.argv[1]
|
||
|
else:
|
||
|
urn = 'spotify:track:0Svkvt5I79wficMFgaqEQJ'
|
||
|
|
||
|
sp = spotipy.Spotify()
|
||
|
track = sp.track(urn)
|
||
|
pprint.pprint(track)
|
||
|
|