This command-line-tool creates a playlist on Spotify which contains the 50 songs you listened to the most. This data is pulled from your LastFM profile.
The period for which this data is pulled is limited to:
- One week
- One month
- Three months
- Six months
- One year
- All time
This limitation is set by LastFM, as those are the period selectors in their API.
The tool supports setting a custom name for the playlist, setting a cover art as well as making the created playlist public (Added to profile) or collaborative. public and collaborative are mutually exclusive.
- A Spotify application
- A LastFM api token
- Java 18 (as this tool is not shipped with a JRE you'll need to install the JDK)
- Usage on Linux requires having xdg-open installed
- Active Last.fm scrobbling
- Visit the Spotify Developer Dashboard
- Create an app
- In the "Users and Access" menu, add your Email-Address and Name
- In the "Edit Settings" add "http://localhost:9876/callback/spotify/" as a Redirect URI
- Note your Client ID and Client Secret
- Create a LastFM API account
- Note the API key
In your command line run java -jar lfm2s-%version%.jar [arguments]
.
For argument usages check the wiki