Update a gist to contain your weekly plays on Last.fm
📌✨ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists
This code was heavily inspired by @JohnPhamous's strava-box.
- Create a new public GitHub Gist (https://gist.github.com/)
- Create a token with the
gist
scope and copy it. (https://github.com/settings/tokens/new) - Create a Last.fm Application (https://www.last.fm/api/account/create)
- Copy the
API token
- Fork this repo
- Go to your fork's
Settings
>Secrets
>Add a new secret
for each environment secret (below)
- GIST_ID: The ID portion from your gist url
https://gist.github.com/<github username>/
6d5f84419863089a167387da62dd7081
. - GH_TOKEN: The GitHub token generated above.
- LASTFM_KEY: The API key you got from creating a Last.fm API account.
- LFMUSERNAME: Your Last.fm username.
Feel free to use the GitHub Sponsor button to donate towards my work if you're feeling generous <3