Last.fm HTTP Client¶
Consume Last.fm web service
-
class
sima.lib.simafm.
SimaFM
[source]¶ Last.fm http client
-
cache
= False¶ HTTP cache to use, in memory or persitent.
- Parameters
cache (BaseCache) – Set a cache, defaults to False.
-
get_similar
(artist)[source]¶ Fetch similar artists
- Parameters
artist (sima.lib.meta.Artist) – Artist to fetch similar artists from
- Returns
generator of
sima.lib.meta.Artist
-
get_toptrack
(artist)[source]¶ Fetch artist top tracks
- Parameters
artist (sima.lib.meta.Artist) – Artist to fetch top tracks from
- Returns
generator of
sima.lib.track.Track
-