Artist browsing

The ArtistBrowser class

class spotify.ArtistBrowser(artist[, type[, callback[, userdata]]])

Note

A sequence of Track objects.

Browse an artist, calling the callback when the browser’s metadata is loaded.

Parameters:
  • artist (Artist) – a Spotify artist (does not have to be loaded)
  • type

    this browser’s type. One of:

    • 'full' (default): all data will be fetched (deprecated in pyspotify 1.7 / libspotify 11)
    • 'no_tracks': no information about tracks
    • 'no_albums': no information about albums (implies 'no_tracks')

    The 'no_tracks' and 'no_albums' browser types also include a list of top tracks for this artist.

  • callback – a function with signature : (ArtistBrowser browser, Object userdata)
  • userdata – any object
is_loaded()
Return type:int
Returns:whether this artist browser has finished loading metadata.
albums()
Return type:list of Album
Returns:the list of albums found while browsing
similar_artists()
Return type:list of Artist
Returns:the list of similar artists found while browsing
tracks()
Return type:list of Track
Returns:the list of tracks found while browsing
tophit_tracks()
Return type:list of Track
Returns:the list of top tracks for this artist found while browsing