https://github.com/sentriz/last-dot-friends
https://github.com/sentriz/last-dot-friends
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/sentriz/last-dot-friends
- Owner: sentriz
- Created: 2019-08-13T15:45:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T14:46:44.000Z (about 2 years ago)
- Last Synced: 2025-02-05T16:37:22.969Z (over 1 year ago)
- Language: Go
- Size: 7.81 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```