wlevine / clamz

Command-line downloader for Amazon MP3
GNU General Public License v3.0
2 stars 0 forks source link

Clamz 0.5

Clamz is a little command-line program to download MP3 files from Amazon.com's music store. It is intended to serve as a substitute for Amazon's official MP3 Downloader, which is not free software (and therefore is only available in binary form for a limited set of platforms.) Clamz can be used to download either individual songs or complete albums that you have purchased from Amazon.

Clamz is free software. Please see the COPYING file for more information.

But First

A reminder that there is ABSOLUTELY NO WARRANTY OF ANY KIND for this program. See the COPYING file if you find this in any way unclear. USE THIS PROGRAM AT YOUR OWN RISK!

Installation

Clamz uses the libraries libgcrypt, libcurl, and libexpat. As such, you must have these libraries, including the "development" files, installed on your system prior to installing Clamz. The exact package names vary between distributions.

Debian: install the packages libgcrypt11-dev, libcurl4-gnutls-dev or libcurl4-openssl-dev, and libexpat1-dev.

Fedora: install the packages libgcrypt-devel, curl-devel, and expat-devel.

To compile clamz, untar the source package and run the following commands:

./configure
make

To install, run (as root):

make install

Usage

When you buy a single song from Amazon, you have the option to either download it in your web browser (the default behavior) or via the MP3 Downloader. When you buy an album, Amazon gives you no choice: you must enable the MP3 Downloader.

To enable the MP3 downloader in the web store, visit the following URL:

http://www.amazon.com/gp/dmusic/after_download_manager_install.html?AMDVersion=1.0.9

(Ignore all the instructions on that page, of course.) This works by setting a cookie in your browser; it seems to be completely separate from your Amazon account. If you are outside the US, replace 'amazon.com' with the corresponding domain for your country (e.g., amazon.co.uk for the UK, or amazon.fr for France.) Amazon does not allow anyone to purchase MP3 files from outside their country of residence.

In any case, when you actually go to download the file(s), if the appropriate cookie is set you will be directed to open or download an AMZ file. This file is basically just an encrypted list of URLs plus additional information (artist, title, and so forth) about the songs.

Save the AMZ file somewhere, and run clamz on it; by default this will just download all of the linked files into the current directory. More control over where the files are downloaded and how they are named is available via the command line, as well as the configuration file, ~/.clamz/config.

Problems?

Let's hope there aren't any. If you do encounter a problem, here's what to do:

History

Version 0.5 -- 2011-10-23

Version 0.4 -- 2010-04-30

Version 0.3 -- 2010-03-31

Version 0.2 -- 2008-10-10

Version 0.1 -- 2008-03-26