Skip to content

edmundofuentes/8Tracks-Downloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

8tracks-Downloader

This is a simple playlist downloader for 8tracks.com that is based on proper API calls with a valid Dev API Key.

About

8tracks.com is by far the best music site I've ever used! The site UI is brilliant, the people are superb, and the music is pure awesomeness. 8tracks is internet radio, so ideally you're NOT supposed to be able to download songs from the site! Thankfully though, it can be done with a little hackery. ;-)

Requirements

Or,

  • A webserver running locally.
    I recommend WAMP for Windows and MAMP for Mac OS X because they are very simple and easy to set up.

Stand-alone Application

Mac OS X only, requires PHP 5.4+ (to upgrade your PHP installation check these recommended packages.)

  1. Download the script and unzipt it.
  2. Double click the "Launch.app" icon.

Webserver Installation

  1. Download the script and unzip it.
  2. Rename the extracted folder to "8tracks-downloader" and copy it into your web root folder.
  3. Make sure that the "8tracks-downloader" folder's permissions are set to 0777.

Instructions

  1. Go to http://localhost/8tracks-downloader in your web browser.
  2. Type in the playlist's URL and your API Key (it must be valid), and click "Analyze".
  3. You can choose to download one by one (right-click on the song title and choose "Save As..") or all (click the button "Download All").
  4. Relax and let it do its magic.
  5. When it has finished it'll say "Done." and your songs will be waiting in the "Downloads" folder inside "8tracks-downloader". Sweet.

Troubleshooting

  • Fatal error: Maximum execution time of XXX seconds exceeded
    The thing with the script is that it doesn't stop running until the last song has been downloaded. PHP features a maximum execution time parameter, which is useful when you are running a traditional web page (you wouldn't want a single cycled script to take your server down), but in this case that's what is throwing an error. Depending on various factors (such as your download speed, the number of songs in the playlist, etc..) the script can take up to 10 minutes or more to download a single playlist! My recommendation would be to set your execution time to 0, that way PHP interprets it as 'unlimited'.

  • Fatal error: Call to undefined function curl_init()
    You might need to enable/install the cURL library. Try this guide first, it'll solve most problems related to cURL.

Updates

By mundofr:

  • Created an AppleScript applet for Mac OS X to launch a self-contained version of the script for easier installation, but it requires PHP 5.4+ to be installed in Mac OS X, which is not yet installed by default on Mountain Lion.
  • Reddit user elmes3 solved an issue where the download wouldn't start if the playlist name contained invalid characters for a folder name.
  • 8tracks recently changed it's API policies and you are now required to authenticate with a valid API key. Changed all the requests to the new API.
  • I also redesigned the script flow quite a bit, a new "analysis" page shows up with the playlist description and the song list, from there you can choose to download one-by-one or download all.
  • The command line functionality has been completely removed.

By navinpai:

Thanks to

About

Download 8Tracks Playlists

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages