Discover & Rate New Music Check out ChartVote. Promote the music you like.

Apple Loves KT Tunstall

Artist KT Tunstall performed at Apple’s 2007 keynote speech with her song Black Horse And The Cherry Tree. I must say she is very talented. For those of you who didn’t notice she is using a loop machine to provide the background instrumentation and vocals. She creates the loop on the fly when she starts the song.

Get “Black Horse And The Cherry Tree” on Amazon

Discover new music with ChartVote

I’ve been quietly working on a new project the past few months that I will be releasing soon. I was a little side-tracked by EchoPic and its surprising popularity and growth rate, but now I am back onto ChartVote full time.

ChartVote - Discover New Music

What is it?
ChartVote is a new music discovery service that allows users to listen and vote for music they like.

Vague huh? Well thats all I can say for now =).

We are looking for artists
Yes sir, we are. If you are an artist who wants to participate in joining ChartVote you can email me at info(at)chartvote.com

Go to ChartVote.com and submit your email address and I will notify you when it launches.

Download MP3s from MySpace with PHP

Disclaimer: This code is not meant to be used in any malicious way. Its only a proof of concept and should not be used to illegal download music. I am not responsible for any damages caused by this code. Use at your own risk.

Now that I got that out of the way...have at it.

How it works
With this PHP code you can specify the friendID of any artist on MySpace and it will download all the songs from the artist's profile. URLs to MP3s on MySpace have a one-time use token in them that only allows the URL to be used once, thus allowing the MP3 to be accessed only once per request. This script grabs all the parts needed to construct this URL with the token in it and grabs the MP3 like a normal browser would or like the song player on artist profiles.

This code is only a snippet of a MySpace crawler that I wrote that can spider and categorize MP3s on MySpace. My version is much more advanced in functionality so I am only posting the "meat" of the code here. Why? Because I am in a generous mood and plus its not exactly rocket science to do this.

The Code

PHP:
  1. <?php
  2.  
  3.     $artistid = 123456789;
  4.     $xmldata = file_get_contents("http://mediaservices.myspace.com/services/media/musicplayerxml.ashx?b=".$artistid);
  5.  
  6.     $xmlartist = simplexml_load_string($xmldata);
  7.  
  8.     echo "Artist: ".$xmlartist->name."<br>";
  9.     echo "Track Listing:<br>";
  10.  
  11.     foreach($xmlartist->playlist->song as $song) {
  12.  
  13.         $xmldata = file_get_contents("http://mediaservices.myspace.com/services/media/musicplayerxml.ashx?b=".$artistid."&s=".$song['bsid']);
  14.         $xmlsong = simplexml_load_string($xmldata);
  15.  
  16.         $temp = explode("?", $xmlsong->curl);
  17.         parse_str($temp[1], $urlinfo);
  18.  
  19.         $songurl = $xmlsong->durl."?bandid=".$urlinfo['bandid']."&songid=".$urlinfo['songid']."&token=".$xmlsong->token."&p=".$urlinfo['p']."&a=0";
  20.  
  21.         echo "Downloading: ".$song['bsid']."<br>";
  22.  
  23.         $mp3data = file_get_contents($songurl);
  24.         $f = fopen("/path/to/save/".$song['bsid'].".mp3", "w+");
  25.         fwrite($f, $mp3data);
  26.         fclose($f);
  27.  
  28.     }
  29.  
  30. ?>

Download: MySpace-MP3-Downloader.zip (1kb)

Help Support Indiefy

Put an Indiefy banner on your blog to help support the independent music industry. Leave a comment with the URL of where you put the banner and I will write a special post giving credit(including a link back to your site) to those who helped support Indiefy.

Light
Indiefy

HTML:
  1. <a href="http://www.indiefy.com" title="Indiefy.com - Giving power back to the music"><img src="http://www.indiefy.com/images/banners/indiefy-banner-234x60-light.gif" alt="Indiefy" border="0" /></a>

Dark
Indiefy

HTML:
  1. <a href="http://www.indiefy.com" title="Indiefy.com - Giving power back to the music"><img src="http://www.indiefy.com/images/banners/indiefy-banner-234x60-dark.gif" alt="Indiefy" border="0" /></a>

Indiefy Has Launched

Indiefy Indiefy has launched in beta and registration is open to music lovers and artists. For those of you who don't know, Indiefy is an online venue for Musicians / Bands to sell their music online. Artists keep the rights and set the price of their music. For listeners, when you purchase a song from an artist on Indiefy, you will have access to that song for as long as the artist keeps it on the site.

Social interaction between listeners and artists is currently in the works for the next feature set.

Indiefy is gaining ground everyday. Signup and help it grow.

Link: indiefy.com

RSS Feed



Recommended Sites