Chris Hatcher

Updates: Stuff I've been working on

Myspace Song Downloader- Right now I'm figuring out how to directly download a song from someone's Myspace page(the artist ones too).  So far I've been able to intercept some connections and see the format of how the flash player "talks" to Myspace to download the song. The player sends a request to something like this. the output is an xml file that has the information on downloading the mp3. It's
 <songplay>
    <bandname>
    </bandname>
    <songname>
    </songname>
    <filepath>
    </filepath>
    <time>
    </time>
    <autoplay>
    </autoplay>
    <downloadable>
    </downloadable>
    <token>
    </token>
    <durl>
    </durl>
    <curl>
    </curl>
</songplay>.
The most important ones are filepath, token, and curl. Durl is the same as curl, but with something like "bandid=2704464&songid=64458707&p=NDYvNDQvMjcwNDQ2NC8yNzA0NDY0XzhiZWZiODBi" added onto it.

Then the player takes the token and goes to something like this url:
http://mediaservices.myspcae.com/services/media/token.ashx?b=2704464&s=64458707.  It got the b= from bandid, and s= from songid in the durl parameter of the xml file. 
Then it makes the final connection
for the download. the url this time is
http://cache09-music01.myspacecdn.com/71/std_ef71ad21362944119beeb9f160a618b8.mp3?bandid=2704464&songid=64458707&token=1201556983_8ddc7d64086e8667e89279cb289ad8e3&p=NDYvNDQvMjcwNDQ2NC8yNzA0NDY0XzhiZWZiODBi&a=1.
It should be possible to get the song and band id from the Myspace page, navigate to the xml file, take the token info etc. and make a url that will download the mp3.