The application obtains listened (aka scrobbled) tracks for a specific Last.fm user and save it to a .csv file. The application allows to download all scrobbled tracks or duplicated as well.
Run the application .jar file and provide next parameters:
- required username (
--user
) - API token, see here (
--token
) - download strategy (
--starategy
, optional):default
- get all scrobbled tracksonly-duplicates
- get duplicated tracks without the 1st one (can be used for deduplication of the library)without-duplicates
- get only duplicated tracks (each duplicated track of the scrobbling history will be shown once)
java -jar lastfm-tracks-dumper.jar --user %user% --token %token% --strategy default
Due to scrobbling issues duplicated tracks can appear in the library 2 or more times. The application determine duplicates with two rules:
- Duplicated tracks go in sequential order.
- Difference in the scrobbled time is less than 10 sec.
Depending on the strategy there will be different output result:
only-duplicates
- track Human will appear 2 times, track Be Mine 1 time.without-duplicates
- each duplicated track will appear just once.
Generated .csv has tab as separator as some names can contain ;
symbol in it.
Currently only date
, artist
, track
and album
values are saved to .csv.
Additional fields page
, pageLink
and index
were added for easy navigation in the library.
ID's for track/artist/album are not saved due to this Last.fm issue.