woob.capabilities.bands

class BandInfo(name=None, year=None, country=None, genre=None, description=None, url=None)[source]

Bases: BaseObject

Information about one specific band.

Variables:
  • url – (str) url

  • name – (str) Name of band

  • genre – (str) Music genre of the band

  • year – (str) Year of creation

  • country – (str) Country of origin

  • description – (str) Description of the band

class BandSearch(id='', name=None, short_description=None, url=None)[source]

Bases: BaseObject

Bands search.

Variables:
  • url – (str) url

  • name – (str) Name of band

  • short_description – (str) Short description of the band

class Albums(name=None, album_type=None, year=None, reviews=None, url=None)[source]

Bases: BaseObject

Information about one specific band.

Variables:
  • url – (str) url

  • name – (str) Album name

  • album_type – (str) Type of album

  • year – (str) Year of release

  • reviews – (str) Album reviews

exception BandNotFound[source]

Bases: UserError

Raised when no band is found.

class Suggestion(id='', name=None, description=None, url=None)[source]

Bases: BaseObject

Band suggestions based on your favorite bands.

Variables:
  • url – (str) URL of suggested band

  • name – (str) Name of suggested band

  • description – (str) Band description

class Favorite(id='', name=None, band_url=None, short_description=None)[source]

Bases: BaseObject

Fetch your favorite bands.

Variables:
  • url – (str) url

  • name – (str) Name of favorite band

  • band_url – (str) URL of the favorite band

  • short_description – (str) Short description of the favorite band

class CapBands[source]

Bases: Capability

Capability to get band information on music websites.

Look for a band. :param pattern: pattern to search :type pattern: str :rtype: iter[BandSearch]

get_info()[source]

Get band info. :param band_id: ID of the band :rtype: BandInfo

get_albums()[source]

Get a band’s discography.

Return type:

iter[Albums]

get_favorites()[source]

Get my favorite bands.

Return type:

iter[Favorite]

suggestions()[source]

Get band suggestions according to your favorite bands.

Return type:

iter[Suggestion]