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
but when you get the contents of this page, you dont see the lyrics ?!?!