Skip to content

plibither8/lastfm-top-artists

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

πŸ“ˆ 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