Ejemplo n.º 1
0
 def __init__(self, identifier, name=None):
     if len(identifier) == 18:
         identifier = 'music://id.echonest.com/~/AR/' + identifier
     self._identifier = identifier
     self._name = name
     self._audio = document.WebDocumentSet(identifier, 'get_audio')
     self._blogs = document.WebDocumentSet(identifier, 'get_blogs')
     self._news = document.WebDocumentSet(identifier, 'get_news')
     self._reviews = document.WebDocumentSet(identifier, 'get_reviews')
     self._similar = SimilarDocumentSet(identifier)
     self._video = document.WebDocumentSet(identifier, 'get_video')
     self._familiarity = None
     self._hotttnesss = None
     self._urls = None
     self._terms = None
Ejemplo n.º 2
0
 def video(self, rows=15, start=0, refresh=False):
     if refresh or not CACHE:
         self._video = document.WebDocumentSet(self._identifier,
                                               'get_video')
     return self._video[start:start + rows]
Ejemplo n.º 3
0
 def reviews(self, rows=15, start=0, refresh=False):
     if refresh or not CACHE:
         self._reviews = document.WebDocumentSet(self._identifier,
                                                 'get_reviews')
     return self._reviews[start:start + rows]
Ejemplo n.º 4
0
 def biographies(self, rows=15, start=0, refresh=False):
     if refresh or not CACHE:
         self._biographies = document.WebDocumentSet(
             self._identifier, 'get_biographies')
     return self._biographies[start:start + rows]