https://github.com/hugovk/lastfm-tools
Some Python CLI tools for talking to the Last.fm API
https://github.com/hugovk/lastfm-tools
lastfm python python-3 python-cli python3 scrobble
Last synced: 8 days ago
JSON representation
Some Python CLI tools for talking to the Last.fm API
- Host: GitHub
- URL: https://github.com/hugovk/lastfm-tools
- Owner: hugovk
- Created: 2013-01-12T10:42:27.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2025-01-06T21:46:47.000Z (3 months ago)
- Last Synced: 2025-03-31T05:05:26.761Z (15 days ago)
- Topics: lastfm, python, python-3, python-cli, python3, scrobble
- Language: Python
- Size: 89.8 KB
- Stars: 83
- Watchers: 7
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - hugovk/lastfm-tools - Some Python CLI tools for talking to the Last.fm API (Python)
README
# lastfm-tools
[](https://github.com/hugovk/lastfm-tools/actions)
[](https://www.python.org/downloads/)
[](https://github.com/psf/black)Some Python CLI tools for talking to the Last.fm API.
Uses [pylast](https://github.com/pylast/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).
## 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](https://github.com/hugovk/bbcscrobbler).## scrobble.py
Takes a track and scrobbles it
- Mandatory parameter 1: "artist - track"
- Optional parameter 2: UNIX timestamp. Default: now## mylast.py
Config and common things. You need your own Last.fm API key and secret, get them from
https://www.last.fm/api/account/create and put them here. Also put your username and
either password or password hash.