Can I write Web Source Script for this website www.musicindiaonline.com ? This is the only website which has accurate and thorough db for indian music. It uses POST method form for search.
What should be the value of IndexURL and %s. If someone can tell me that, then I can go ahead and write the parsing script. Or if someone with better coding skills wants to write it, it would be a huge help.
Please help.
Never Mind. Got it working. Basically this is what I did, if anyone else is interested.
- Used Firefox's Live HTTP Headers plugin to find the query that POST form generated.
- Created an intermediate ASP page to generate the query and return the HTTP output.
Below is the code for ASP page.
<%
Response.Buffer=true
DataToSend = "q=" & Request.QueryString("album") & "&i=17&f=movie_name& searchsub.x=25&searchsub.y=6"
dim xmlhttp
set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "POST","http://www.musicindiaonline.com/s",false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.send DataToSend
Response.ContentType = "text/html"
Response.Write xmlhttp.responseText
Set xmlhttp = nothing
%>
I will post my scripts to Web Sources Scripts forum once they are done.
QUOTE (Alok @ Jun 29 2008, 04:05) <{POST_SNAPBACK}>
Never Mind. Got it working. Basically this is what I did, if anyone else is interested.
- Used Firefox's Live HTTP Headers plugin to find the query that POST form generated.
- Created an intermediate ASP page to generate the query and return the HTTP output.
Below is the code for ASP page.
<%
Response.Buffer=true
DataToSend = "q=" & Request.QueryString("album") & "&i=17&f=movie_name& searchsub.x=25&searchsub.y=6"
dim xmlhttp
set xmlhttp = server.Createobject("MSXML2.ServerXMLHTTP")
xmlhttp.Open "POST","http://www.musicindiaonline.com/s",false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.send DataToSend
Response.ContentType = "text/html"
Response.Write xmlhttp.responseText
Set xmlhttp = nothing
%>
I will post my scripts to Web Sources Scripts forum once they are done.
Where have you uploaded it? I also need one for hindi songs.
Thanks