bits | ||
.gitignore | ||
archiveexported.js | ||
callback.html | ||
composeplaylist.js | ||
metasearcher.js | ||
package-lock.json | ||
package.json | ||
README.md | ||
resultvisualizer.js |
Automatic Spotify scrape
Looks for your local music files on Spotify and helps you create a playlist. This is useful for migrating your local music to Spotify. Your tracks need to have valid metadata (artist and title is the minimum)!.
Feel free to use https://lunasqu.ee/callback
as a callback url or put callback.html
on your own server. It just prints query parameters to html. even if i wanted to i couldn't steal your code as i do not know your client secret.
- create Spotify app: https://developer.spotify.com/dashboard/login
npm i
- put your Spotify credentials in
credentials.json
following the example. node metasearcher /path/to/music/directory
scan the directory for music files and create aspotify.json
file from matches.node resultvisualizer
create a html table from thespotify.json
file. Select the tracks from the HTML file and press "Export selection"- Put
track-selection.json
in this directory and runnode composeplaylist create/add [playlist name/id]
to put all of them into a playlist!
Next time you run resultvisualizer
your previous selection will be automagically checked!