Collect user's top artists through time.
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.
You must have Node.js and npm installed.
- Install dependencies:
npm install - 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.
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.