# File lib/amazon/search.rb, line 598
      def artist_search(artist, mode='music', weight=HEAVY, page=1,
                        sort_type=nil, offerings=nil, keyword=nil,
                        price=nil, &block)

        url = AWS_PREFIX + "?t=%s&ArtistSearch=%s&mode=%s&f=xml" +
              "&type=%s&dev-t=%s&page=%s"
        url << "&price="    << price   unless price.nil?
        url << get_offer_string(offerings)
        @type = WEIGHT[weight]
        sort_string = get_sort_string(sort_type, mode)

        artist = url_encode(artist)

        modes = %w[music classical]
        unless modes.include? mode
          raise ModeError, "mode must be one of %s" % modes.join(', ')
        end

        mode = localise_mode(mode)
        url = url % [@id, artist, mode, @type, @token, page] << sort_string
        url << "&keywords=" << url_encode(keyword) unless keyword.nil?

        search(url, &block)
      end