The transfer
file will take a csv file (in our case collection.csv) which should contain 2 columns (track, artist) and search Spotify then add it to your collection.
- Clone this repo
- Add in a new CSV which contains 2 columns (track, artist). Altenatively you can modify the code to work with your format.
- Obtain simplejson by running
go get github.com/bitly/go-simplejson
- Obtain a Spotify OAuth token for saving tracks. You can obtain one simply by going to (https://developer.spotify.com/web-api/console/put-current-user-saved-tracks/).
- Add the new token into the
transfer.go
file. - Run
go build transfer.go
- Run the
transfer
file and wait. This could take some time depending on how large your library is.