Home
Name Modified Size InfoDownloads / Week
README 2015-05-02 2.2 kB
export-spotify-songs.sh 2015-05-02 8.2 kB
Totals: 2 Items   10.4 kB 0
  =========================
  
   Export Spotify songs
  
  =========================
  
   Purpose
  ----------
  This tool prints out in plain text the name of the artist and the name of the song of a selection of songs in the Spotify client. Although unlikely, sometimes one needs to export the songs saved up in Spotify --and it doesn't provide any method yet--.
  
   How to install it
  ---------------------
  There is no installation or dependencies associated with special packages, thus it should work under all Linux distributions without any action. This tool relays on common commands (such as echo, printf, sed, head, tail) to perform tasks. Perhaps wget might not be present on all system; in that case, try installing it with apt-get or yum.

   How to use it
  -----------------  
  1.  Open Spotify client and select the songs you would like to export.
      No matter the menu they come from: starred, my music, playlist...
  2.  Copy the selection, as you would do with any text or file, pressing control-C.
      Alternatively, you may right-click and then choose "Copy HTTP link" (do not copy the Spotify URI)
  3.  Paste them in a file, as you would do with any text or file, pressing control-V.
      The output should look like a trail of web URLs separated by spaces, such as:
         http://open.spotify.com/track/78EDU58H1Zz2XLyYXbPDvE
      Save the file in a known path. The name and extension are indifferent.
  4.  Run export-spotify-songs.sh in a command shell passing as the only argument the path to the file saved in (3):
      $ ./export-spotify-songs file.txt
      It should print out the name of the artist and the song in the same order as introduced.
  
   Example
  ----------
  Download this example and run in the same folder:
  $ ./export-spotify-songs.sh Songs.txt
  Matt Schofield      Red Dragon
  Manu Chao           Mentira
  Led Zeppelin        Immigrant Song
  Nina Simone         All Along The Watchtower
  Guadalupe Plata     I'd Rather Be A Devil
  Green Day           Kill The DJ
  Barón Rojo         Campo de Concentración
  
  You may redirect the output to a file very simply:
  $ ./export-spotify-songs.sh Songs.txt > output.txt
Source: README, updated 2015-05-02