def get_similar(self, limit=None):
        """
        Returns similar tracks for this track on the network,
        based on listening data.
        """

        params = self._get_params()
        if limit:
            params["limit"] = limit

        doc = self._request(self.ws_prefix + ".getSimilar", True, params)

        seq = []
        for node in doc.getElementsByTagName(self.ws_prefix):
            title = _extract(node, "name")
            artist = _extract(node, "name", 1)
            match = _number(_extract(node, "match"))

            seq.append(SimilarItem(Track(artist, title, self.network), match))

        return seq
def get_similar ( self , limit = None ) : params = self . _get_params ( ) if limit : params [ "limit" ] = limit doc = self . _request ( self . ws_prefix + ".getSimilar" , True , params ) seq = [ ] for node in doc . getElementsByTagName ( self . ws_prefix ) : title = _extract ( node , "name" ) artist = _extract ( node , "name" , 1 ) match = _number ( _extract ( node , "match" ) ) seq . append ( SimilarItem ( Track ( artist , title , self . network ) , match ) ) return seq
Returns similar tracks for this track on the network,
        based on listening data.