# shows artist info for a URN or URL

import spotipy_twisted
import sys
import pprint

if len(sys.argv) > 1:
    urn = sys.argv[1]
else:
    urn = 'spotify:artist:3jOstUTkEu2JkjvRdBA5Gu'

sp = spotipy_twisted.Spotify()

artist = sp.artist(urn)

pprint.pprint(artist)

[((12, 5, 12, 30), 'spotipy_twisted.Spotify', 'spotipy_twisted.Spotify', ({}, {}), '()', False, 'import spotipy_twisted\n'), ((16, 0, 16, 21), 'pprint.pprint', 'pprint.pprint', ({(16, 14, 16, 20): 'artist'}, {}), '(artist)', False, 'import pprint\n')]