Ah yes, one of our favorite things (Firebug) can be used to workaround song downloads on one of our most least favorite sites in the web world – Myspace.
There have been previous solutions all over the place for downloading any song off of Myspace, but just about every solution has been blocked with time. Up until now. Thanks to the power of the Firebug extension for Firefox, grabbing your favorite tunes from Myspace is just a few steps away.
Important! Please respect your band’s music! As a supporter of music because of how essential it is to many designers including myself, use this method sparingly. (Myspace isn’t exactly “Top Quality” anyways.)
Step One: Get the Plugin
The first step is to make sure you have the firebug plugin installed and updated for your version of Firefox. Once that’s set, you’re ready to begin.
Step Two: Visit bands Myspace
Head over to your intended artist’s Myspace page and bring up Firebug by going to tools, firebug in the menu, or simply clicking the check mark in the right corner of Firefox (or, because this is Myspace, it could be a red X listed a huge amount of code errors.)
Use the built in Firebug search to find “mp3″. It will bring you up to some object tags, which you’ll need to expand. You’ll than see a big jumble of code, with the most important line being the last one.
<object id="mp3player" width="450" height="345" border="0" viewastext="" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=8,0,0,0">
<param value="11906" name="_cx"/>
<param value="9128" name="_cy"/>
<param value="" name="FlashVars"/>
<param value="http://lads.myspace.com/music/musicplayer.swf?n=aHR0cDovL211c2ljLm15c3BhY2UuY29t&t=X5Zw5I1tk54a71P8fMKJnQpbddbteD70Bam4bAWgd138M7RoPCuAfR7wzr/fsgpfKGkaeSgeDo0YPqml+4bScg==&u=LTE=&a=0&d=ODcyODg0M14xMTY5OTI1ODIz" name="Movie"/>
<param value="http://lads.myspace.com/music/musicplayer.swf?n=aHR0cDovL211c2ljLm15c3BhY2UuY29t&t=b1pN2eEzKrfYSxiB3wpe7+tiOJu6RzW2wb6jQlg9FgUxR3uOdV3DAmdr70WCbHHgGcWYd8QGfT9uCuk7nGie1A==&u=LTE=&a=0&d=ODcyODg0M14xMTY5OTI1ODIz" name="Src"/>
<param value="Window" name="WMode"/>
<param value="1" name="SeamlessTabbing"/>
<embed width="450" height="345" align="" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="mp3player" bgcolor="#FFFFFF" quality="high" src="http://lads.myspace.com/music/musicplayer.swf?n=aHR0cDovL211c2ljLm15c3BhY2UuY29t&t=CiRg+LmSa1H6QjcC+e/TykKN4oRCt5Wyh9/7FNXMWo10RIGfM43EsgYN1sQsI2PnwmL8Ibq3JeypyvLUDqe6CA==&u=LTE=&a=0&d=ODcyODg0M14xMTY5OTI1ODIz"/>
We’re concerned with the embed code. Copy the “src” and paste it into the address bar.
Step Three: Using Firebug to pull the Url
Once you’ve pasted the url of the media player into your address bar, hopefully you’ve advanced to the page. You should now be seeing a blown up version of the mp3 player for your intended band. With Firebug open, select the “Net” sub-tab and then click a song from the player.
Because the Net inspector watches sites load in real-time, the inspector will refresh with a few different things. They will include album artwork, a hit counter, some random token, and the url to the mp3 file itself.
By rolling over each area, you’ll be able to see the expanded url. The url to the media file will most likely start with “http://cache…”. Copy this url and you’re all set.
Step Four: Getting the Mp3
You will most likely need to paste your newly copied url into an html page so you can right click to “Save Target As..”. If all went well, you should be able to download an Mp3 which will have a random string name, but it should be the file you were looking for.
Update: I think I’ve found the problem with many of your downloads. Even with the player still open, the random tokens have a time bomb I believe which causes them to expire quickly. Therefor, if you haven’t downloaded the file fast, you’ll end up with a small and useless download instead of the real thing. I think the timebomb may be 30 seconds, so try to get your downloads started fast. If it fails, just try again.
The lesson here
Firebug is a powerful script that every developer should be using, and Myspace is a horribly coded site.
Note: One of our readers pointed out that the Myspace player page must remain open when you attempt to download the song, otherwise the token will expire and the download may not work.
This Article has been Updated
We’ve updated this article for those of you who have been having trouble. Please refer to the new post if you’re still stuck with downloads.