Ripping MP3s from Last.fm with Linux, Streamripper and LastFMProxy
The tools
- Linux (I’m using Ubuntu)
- Streamripper (I’m using version 1.61.27)
- LastFMProxy
- Last.fm account
Installing LastFMProxy..
wget http://vidar.gimp.org/wp-content/uploads/2006/07/lastfmproxy-1.1.tar.gztar -xzf lastfmproxy-1.1.tar.gz
cd lastfmproxy-1.1/
vi config.py
# Stick your last.fm username and password between the quotes below.
username = “yourusername”
password = “yourpassword“
Now save the file and exit the editor (vi/nano/mcedit/etc)
Installing Streamripper
tar -xzvf streamripper-1.61.27.tar.gz
cd streamripper-1.61.27
./configure
make
sudo make install
In Ubuntu or Debian just do apt-get install streamripper
Running LastFMProxy
First make sure you read the README
cd lastfmproxy-1.1
./main.py &
Note: if you have just created a username on Last.fm you need to “tell” it what kind of music you like, so after running LastFMProxy point your browser to one of these addresses:
http://localhost:1881/lastfm://globaltags/rock http://localhost:1881/lastfm://globaltags/dance http://localhost:1881/lastfm://artist/Madonna/similarartists http://localhost:1881/lastfm://artist/Coldplay/similarartists There is more information about this in the README
Running Streamripper and ripping MP3s
streamripper http://localhost:1881/lastfm.mp3
Connecting…
stream: last.fm
server name: last.fm Streaming Server
bitrate: 0
meta interval: 16000[buffering - | ] - Wait…
[ripping… ] The Rapture - Infatuation [ 4.59M]
[ripping… ] Scissor Sisters - Take Your Mama Out [ 4.15M]
The end! ![]()

