🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

lastfmapi-py

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lastfmapi-py

Get charts, top artists and top songs WITHOUT LastFM API

1.0.0
Maintainers
1

LastFM

Get charts, top artists and top songs WITHOUT LastFM API

Usage

Get stats (charts)

We provide many filters and options to customize. Geo filter is only one, that doesn't have a specific enum (class).

from lastfm import *

print(get_charts(SearchType.artists))
print(get_charts(SearchType.tracks,
                 geo_filter="si",
                 music_type_filter=MusicTypeFilter.electronic,
                 limit=1,
                 year_filter=YearFilter.t2010s))

We also provide searching.

from lastfm import *

print(search("Glass Animals", search_type=SearchType.all))

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts