Esempio n. 1
0
	def get_hot_songs(self, artist_id):
		try:
			url = get_artist_url(artist_id)
			result = self.get_request(url)
			return result['hotSongs']
		except:
			print('get_hot_songs sleep 10 seconds')
			time.sleep(10)
			url = get_artist_url(artist_id)
			result = self.get_request(url)
			return result['hotSongs']
Esempio n. 2
0
 def get_hot_songs(self, artist_id):
     """
     Get a artist 50 hot songs
     :param artist_id:
     :return:
     """
     url = get_artist_url(artist_id)
     result = self.get_request(url)
     return result['hotSongs']