Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 20-11-2008
Member
 
Join Date: Oct 2008
Posts: 24
Web Script

I create a script that goes to visit a web page and that is all linked to mp3 and make a playlist m3u then sends it on the player assigned to that format.

The aim is to listen to streaming (and therefore download) podcasts radio that I can not listen when their distribution. The bad news is that I have no idea how to even start this script

if anyone knows a way to do so, greatly appreciate any runway, explanation or advice. Thank you.
Reply With Quote
  #2  
Old 20-11-2008
Member
 
Join Date: Feb 2008
Posts: 1,848
Re: Web Script

What I would do is I from the source code of the page (although I'm not sure that the links either directly marked in the source code on all sites. So I create a variable string containing the source code for the page (it must surely be way to do this automatically, but I do not know that action).

However, imagine that we get and we put this string in the variable:

Code:
code_source = "source code";
then it should know how many characters contains the source code to know when to stop searching:

Code:
nb_characters_code_source = code_source.length;
and once you done all it creates a table to save the search results.

Code:
resultat_mp3 = new Array;
Then, since it seeks the string. "mp3" which is 4 characters, we're gonna do a search on 4 characters in both advancing each time of 1 character ... you follow me?

Code:
for (cpt = 0; cpt <= nb_caracteres_code_source; cpt + +) ( 
code_source.substring search = (cpt, cpt +4); 
if (search ==. "mp3") ( 
resultat_mp3 [cpt] = ". mp3"; 
) 
)
but now you only know where the strings. "mp3". we must still seek the full url ... however, they are probably stuck between two quotes. We must therefore seek what is between "and. ... mp3

Code:
nb_cellules_resultat_mp3 = resultat_mp3.length; 
for (cpt = 0; cpt <= nb_cellules_resultat_mp3; cpt + +) ( 
if (resultat_mp3 [cpt]! = "") ( 
i = 1; 
while (code_source.substring (cpt)! ='"'){ 
resultat_mp3 [cpt] = code_source.substring (cpt-i-1, CPT-i) + resultat_mp3 [cpt]; 
i = i + 1; 
) 
) 
)
and then, normally, you should have a table with all your url.

That's all I can do. I hope this is not what you already knew.
Reply With Quote
  #3  
Old 20-11-2008
Member
 
Join Date: Oct 2008
Posts: 24
Re: Web Script

Shame on me, I forgot about this and therefore I say with (a lot) late ...

thank you for this info
That said, I just looked at the heck and I soon saw that it was going to ask too much work ... (it's hard to be a noob )
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Web Script"
Thread Thread Starter Forum Replies Last Post
Dumping logon name and logon script values to a text file - blank logon script field Phil McNeill Windows Server Help 3 17-08-2010 09:06 PM
Is it possible to execute Perl script within another script? RasMus Software Development 2 21-07-2009 10:57 PM
Word 2008 + bibfuse: no script in script menu deval4u Software Development 5 06-04-2009 12:53 PM
Problem with script in order to open another script in an extra window Samsher Software Development 2 14-01-2009 01:25 PM
Startup Script or Login Script ?? WANNABE Active Directory 5 22-12-2006 07:44 PM


All times are GMT +5.5. The time now is 10:17 PM.