views:

25

answers:

1

Similar to these two threads

www.stackoverflow.com/questions/3458076/how-to-use-javas-built-in-javascript-engine-to-run-script-on-a-web-page

www.stackoverflow.com/questions/3443769/how-do-i-get-this-page-programatically

I am trying to get the lyrics via php.

www.lyricsplugin.com/winamp03/plugin/?artist=Linkin%20Park&title=Numb

So I know that the lyrics are displayed through that javascript and heres the script

<body onload="javascript:getContent('Linkin%20Park', 'Numb', '1281736519', 'febe025d86e16d73150a1819a71caa2a')"> 

And this function which gets the code

function getContent2(artist, title, time, check)
{ 
 xmlHttp = GetXmlHttpObject();
 if(xmlHttp == null)
  {
  return;
  }
 var url = "content.php?artist=" + artist + "&title=" + title + "&time=" + time + "&check=" + check;
 xmlHttp.onreadystatechange = stateChanged;
 xmlHttp.open("GET", url, true);
 xmlHttp.send(null);
}

Now ive managed to code a php script that can generate the code which gets the lyrics but nothing happens. Any ideas why ?

My script can generate this code

http://lyricsplugin.com/plugin/content.php?artist=linkin%20park&amp;title=numb&amp;time=1281736900&amp;check=1bff1959c113aac754437b93fffb6892

but when you get the contents of this page, you dont see the lyrics ?!?!

A: 

Not that I'm going to take the time to check, but it's likely they've deliberately made it difficult to reverse-engineer their content. You know, to stop people stealing their work.

Rushyo