Skip to content

plibither8/lastfm-top-artists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ˆ Last.fm Top Artists

Collect user's top artists through time.

Build Status

What?

Collect a Last.fm user's all time top artists through all the dates from the time they started scrobbling till now (depending on the set frequency, default is set to 7: a week).

See mine (plibither8) for an example.

Instructions

You must have Node.js and npm installed.

  1. Install dependencies: npm install
  2. Run the file with your username and desired frequency (optional): node index <USERNAME> <FREQUENCY>

To generate a CSV file of the data collected: node misc/generate-csv. Make sure the data.json file is there.

GitHub Actions

To automate this and run it every day and store the data as GitHub Gist, I have enabled GitHub Actions. It makes use of the misc/data-file.js file. You can fork the repository and setup your own. Remember to set GH_TOKEN and GIST_ID environment secrets.

License

MIT

About

πŸ“ˆ Collect user's top artists through time

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published