HOWTO: Swipe music from MySpace players at full quality

I recently had a request from Phil to rip a particular track to MP3 from a band's MySpace page. While most music on MySpace is shoddily encoded at 96Kbps, sometimes it's the only place available online to listen to a particular song. To save yourself from the agony of calling up a Web browser, going to the domain, and having ads foisted upon yourself, some technical work will get you set to have a fully unrestricted MP3 copy of the music.

Other solutions exist for this process, including connecting a 3.5mm cable from your sound card line out to sound card line in, and then recording the result, but this introduces even more quality loss to the process.

There are some technical restrictions on this process, and I advise anyone coming here to ask about them to seriously consider their questions before commenting. With a post title involving music and MySpace, I don't expect the cream of the crop to start posting their wireless packet sniffing instructions or automated Flash extractor Linux tools (although that would be a pleasant change.)

You need a wired connection to the Internet to perform the packet capture. Most wireless card drivers don't have the ability to capture packets, or they don't work in this configuration.


  1. Download and install Wireshark, which is the newest version of the classic Ethereal network utility. The Windows installer also comes with a driver, WinPCap, that allows the packet capture to take place. Follow all default instructions in the installer.

  2. Close any programs that use your Internet or network connection. This includes other Web browsers, instant messaging programs, file sharing utilities and feed readers. While you don't have to close everything, it'll help make sure that there's enough memory to load the MySpace page and capture the MP3 at the same time.

  3. Open Wireshark, then resize it to a standard window.
    Wireshark default window

  4. Start a new Web browser window, resize it to a standard window, and click the Stop button to cancel the page load. You should have Wireshark and your web browser running side by side:Wireshark/Firefox layout

  5. Enter the address of the MySpace page in the web browser address bar, but don't press Enter or Go yet.

  6. Switch to Wireshark, and click the Interfaces button - it's the first one on the left:Wireshark - Interfaces

  7. In the Interfaces window, look for the active wired Ethernet controller in your computer. The numbers for the controller should be slowly increasing:Interfaces Window

  8. Click the Start button to the right of the controller. Immediately, switch back to your browser and let the MySpace page load. If the song isn't the one you want, switch to it as quickly as possible. If you resize the Wireshark window, you'll see packets scrolling past:Capture Started

  9. Wait until the song is done or is almost done playing. (You really only need to wait until the song data is downloaded, though.) Once finished, click the Stop Capture button in Wireshark:Stop capture button

  10. Resize the Wireshark window. Copy and paste the following text into the Filter box, then click the Apply button.http.content_type == "audio/mpeg"

    Filter audio/mpeg

  11. When you click the Apply button, you should only see one entry in the packet list. You may also see two dialog box with progress bars - one filters the captured packets, and the other decodes the MP3 file sequence.Wireshark progress bar

  12. Resize the Wireshark window so that you can see the packet overview, as in the dialog below. Click on the Media Type header and cancel the progress windows.09_capture.PNG

  13. Right-click on the Media Type header and click Export Selected Packet Bytes. Enter a filename for the data, ending with the extension .mp3.

  14. Open the MP3 or import it into your library. You'll likely have to provide artist and title information for the track, since it's not included with the packet stream.


As a special bonus, I've also recorded a Wink tutorial on the process. The video takes the shortcut of applying the audio/mpeg filter before stopping the packet capture, so that you can save your song file immediately after it's downloaded from MySpace.

Other possibilities to reduce processing time would be to set a filter, only capturing HTTP packets on port 80 following the audio/mpeg chain, and changing various configuration settings in Wireshark.

The band that I demoed the capture from is Stalling Dawn, who also have much higher quality tracks available to download directly from their PodShow page if you create an account. Unfortunately they don't seem to have an official album released yet, but I'd definitely buy it if one ever comes out.

Comments

Dave Lahn on 2007-11-07 09:58 PM (#)
Could that process be anymore complicated...
Jake Billo on 2007-11-07 10:29 PM (#)
If you want full quality, it at least works.
SzK on 2007-12-22 03:31 PM (#)
Well, I think when you listen to a song on Myspace the server sends you the 96 kbps with 22KHz sampling rate version of the song. I think with this method you can only rip that version. Or am I wrong? Because there are much easier methods to get these 96 kbps versions.
Jake Billo on 2007-12-22 04:09 PM (#)
As far as I know, the 96kbps/22HKz format is the only type of download you can get with this method.

I assume there are utilities or other processes out there to let you grab the MP3 file, but when you search for anything with "MySpace" in the title, you're guaranteed to have to slog through a bunch of shareware utilities offered by less-than-reputable sites. Can you suggest any easier methods to obtain the MP3 file, since you mentioned it?
SzK on 2007-12-23 02:49 PM (#)
Well, there is a method that utilises a Firefox extension called Firebug, the method is discussed here: .
And yesterday I found this site
, where you only have to paste the Myspace URL in the field.
None of the sites nor the extension seems malicious to me.
SzK on 2007-12-23 02:58 PM (#)
Ok, sorry I screwed up the html tags. Let's try again.
Well, there is a method that utilises a Firefox extension called Firebug, the method is discussed here: http://www.devlounge.net/sidenotes/using-firebug-to-download-songs-from-myspace.
And yesterday I found this site http://www.file2hd.com/ , where you only have to paste the Myspace URL in the field.
None of the sites nor the extension seems malicious to me.
Jake Billo on 2007-12-23 02:59 PM (#)
Firebug is an excellent (and quite reputable) tool. I didn't know it could pull the MP3 address right out of the SWF file. The other site looks interesting as well since it doesn't ask you to download any Windows app. I'll have to pass these along to the guy who originally requested this technique.

Interesting to see there might be a workaround for full quality versus 96k/22 streaming, from the first site you listed. I find 96K MP3 files to be unlistenable and a higher quality copy would be welcome in that case.

If MySpace ever begins requiring a valid (Flash) user-agent string for downloads, then there'll have to be another workaround.
SzK on 2007-12-23 03:09 PM (#)
Unfortunately, that workaround for the original higher bitrate versions stopped working a few months ago.
Jake Billo on 2007-12-23 03:13 PM (#)
Aww, weak. MySpace can provide the bandwidth to serve up a ridiculous amount of malformed HTML and CSS "profile layouts" that practically need a dual core chip to run properly, but can't even bump things to 128K so that the music doesn't sound like it's being reproduced by a speaker encased in mud?

Guess that's why I never got along with the MySpace crowd. ;)
SzK on 2007-12-23 03:43 PM (#)
mp3s are terrible at low bitrates, but I think the main problem is the 22KHz sampling rate. I think MySpace deliberately renders the sound quality almost unlistenable. A 64 kbps or even 56 kbps realmeadia stream would sound much better (with 44KHz of course).
Jake Billo on 2007-12-30 05:24 PM (#)
Yeah, RealMedia would be great... you'd get to hear the first ten seconds of Fergie before BUFFERING...
Craspy Craspy on 2009-01-10 05:00 AM (#)
Yo duder, this looks very cool but there is an easier way to download full quality mp3s from myspace! Check out http://www.myspaf.com
Jake on 2009-01-10 10:08 AM (#)
"Yo duder", that site doesn't work. The resulting MP3's are unplayable. Thanks for your bag of fail.

Add Comment

If you'd like, you can add your own comments to this post. The site owner may choose to moderate comments, so your comments may not appear immediately.



(Your email address will only be stored and not posted publicly.)

Verification