<s> import pprint <EOL> import sys <EOL> import spotipy <EOL> import spotipy . util as util <EOL> scope = '<STR_LIT>' <EOL> if len ( sys . argv ) > <NUM_LIT:2> : <EOL> username = sys . argv [ <NUM_LIT:1> ] <EOL> tids = sys . argv [ <NUM_LIT:2> : ] <EOL> else : <EOL> print ( "<STR_LIT>" % ( sys . argv [ <NUM_LIT:0> ] , ) ) <EOL> sys . exit ( ) <EOL> token = util . prompt_for_user_token ( username , scope ) <EOL> if token : <EOL> sp = spotipy . Spotify ( auth = token ) <EOL> sp . trace = False <EOL> results = sp . current_user_saved_tracks_contains ( tracks = tids ) <EOL> pprint . pprint ( results ) <EOL> else : <EOL> print ( "<STR_LIT>" , username ) </s>
