# 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, 'spotipy_twisted.Spotify', 'spotipy_twisted.Spotify', False, 'import spotipy_twisted\n'), (16, 'pprint.pprint', 'pprint.pprint', False, 'import pprint\n')]