An open API service indexing awesome lists of open source software.

https://github.com/sentriz/last-dot-friends


https://github.com/sentriz/last-dot-friends

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

### last.friends

###### installation

`$ go install go.senan.xyz/last-dot-friends/cmd/last-dot-friends@latest`

###### usage

$ last-dot-friends -h
* usage:
last-dot-friends [options] [username]...

* api keys:
https://www.last.fm/api/account/create

* options:
-api-key string
last.fm api key (required)
-api-secret string
last.fm api secret (required)
-interval int
time (in seconds) to wait between fetches (default 20)

###### api keys

get them [here](https://www.last.fm/api/account/create)

###### example with desktop notifications

```bash
last-dot-friends \
-interval 30 \
-api-key "my-api-key" \
-api-secret "my-api-secret" \
alexkraak \
bovineknight \
devoxel \
izaak \
mortalslayer \
sentriz \
| while IFS=$'\t' read -r username artist track; do
notify-send --icon lastfm.svg "$username" "$artist — $track"
done
```