Results 1 to 3 of 3

Thread: Web Script

  1. #1
    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.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    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.

  3. #3
    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 )

Similar Threads

  1. Replies: 3
    Last Post: 17-08-2010, 09:06 PM
  2. Is it possible to execute Perl script within another script?
    By RasMus in forum Software Development
    Replies: 2
    Last Post: 21-07-2009, 10:57 PM
  3. Word 2008 + bibfuse: no script in script menu
    By deval4u in forum Software Development
    Replies: 5
    Last Post: 06-04-2009, 12:53 PM
  4. Replies: 2
    Last Post: 14-01-2009, 01:25 PM
  5. Startup Script or Login Script ??
    By WANNABE in forum Active Directory
    Replies: 5
    Last Post: 22-12-2006, 07:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,627,880.99514 seconds with 16 queries