#NEWLINE# def search_request( user_search , country_code , track_list_height ) : #NEWLINE# #INDENT# url = 'http://api.spotify.com/v1/search?q={0}&type=track,artist&market={1}&limit={2}' #NEWLINE# user_search = '+' . join ( user_search . split ( ) ) #NEWLINE# url = url . format ( user_search , country_code , track_list_height ) #NEWLINE# raw_results = requests . get ( url ) #NEWLINE# return raw_results . json ( )