Giter VIP home page Giter VIP logo

spotify-to-mp3's Introduction

Spotify to MP3

A simple command line utility to download MP3 files of Spotify tracks. Note those files are downloaded from Grooveshark, not from Spotify itself.


THIS PROJECT IS IN MAINTENANCE MODE

Time is finite and these days I'm focusing on other projects. Hope you understand.

  • I'll keep working on the occasional bug fixing and making sure it still works on the supported platforms.
  • Most probably I won't add any new feature. Feature requests will be kept open in case somebody wants to contribute with a pull request.

Installation

Mac OS X

$ sudo gem install spotify-to-mp3

Probably sudo can be ommited if using rvm or similar.

Linux (Ubuntu)

Make sure you have rubygems installed and configured:

$ sudo apt-get install rubygems1.9 ruby1.9.1-dev
$ echo 'PATH=$PATH:/var/lib/gems/1.9/bin' | sudo tee /etc/profile.d/rubygems1.9.sh >/dev/null
$ sudo gem install spotify-to-mp3

Usage

  1. Create a file (like songs.txt) and copy the Spotify songs URLs to it. Plain song names are also accepted. It will look like this:

    http://open.spotify.com/track/1JqTcOjOn7gEpeC0JcRVPa
    spotify:track:1fE3ddAlmjJ99IIfLgZjTy
    The Drums - Money
    
  2. Download songs. They are saved to the current directory. Errors will appear in red (like when a song is not found).

    $ spotify-to-mp3 songs.txt

Also, as it's common in Unix programs, you can pipe in the songs:

$ echo white knuckle ride | spotify-to-mp3

or simply:

$ spotify-to-mp3

and drag the songs from the Spotify app to the terminal.

Changelog

2014-05-05

  • Accept track IDs from stdin

2012-08-20

  • Set filename artist and title from Grooveshark

2012-01-11

  • Touch already downloaded songs. This way songs no more in the download list can be spotted easily.

2011-10-03

  • Make it work on ruby 1.8.7 (Snow Leopard)

2011-09-26

  • Both Spotify URLs and plain song names are accepted

Testing

$ rspec

TODO

  • Consider multiple artists songs
  • Filter Grooveshark results by artist, title and length
  • Accept tracks from stdin (instead of from a file, to drag songs directly to the app)
  • Exit with a single Ctrl+C
  • Cleaner output
  • Don't pick remixes

spotify-to-mp3's People

Contributors

frosas avatar tomaszgieres avatar andreapergola avatar

Watchers

Amine Bezzarga avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.