Skip to content

Some Python CLI tools for talking to the Last.fm API

Notifications You must be signed in to change notification settings

ViniciusSDiaz/lastfm-tools

 
 

Repository files navigation

lastfm-tools

Build Status

Some Python CLI tools for talking to the Last.fm API.

Uses pylast:

pip install pylast

np.py

Show my now playing song, or that of a given username.

lastplayed.py

Shows the last 20 tracks you scrobbled (or of a given username).

Or shows all the last scrobbled tracks by an artist (or just of a given track).

loveit.py

Loves whatever track is now playing on Last.fm, then prints confirmation of last loved track.

loved.py

Shows your last 20 (or a given number of) loved tracks.

nowplaying.py

Command-line loopy thing to show what a Last.fm user is now playing. Based on bbcscrobbler.

scrobble.py

Takes a track and scrobbles it

  • Mandatory parameter 1: "artist - track"
  • Optional parameter 2: UNIX timestamp. Default: now

unscrobble.py

After prompting, removes your last scrobbled track from your library. Use --number to unscrobble lots at a time.

mylast.py

Config and common things. You need your own Last.fm API key and secret, get them from http://www.last.fm/api/account and put them here. Also put your username and either password or password hash.

About

Some Python CLI tools for talking to the Last.fm API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%