Notices


Reply
Thread Tools
torx's Avatar
Posts: 231 | Thanked: 21 times | Joined on May 2007 @ Singapore
#1
Hi,

I've been playing around youtube for a while and i've figured a way to create an app to search for videos on youtube.

I haven't coded in a long time, so i'll write it out in pseudo code. Hopefully, someone can translate that into something useful.

Maybe a youtube search integrated into UKMP would be wonderful.


Code:
PROCEDURE GetSearchQuery
     Get SearchItem
     wget http://www.youtube.com/results?search_query=<<SearchItem>>&search=Search
     Parse (downloadedsite)
ENDPROCEDURE

PROCEDURE Parse
     While not end of file
             Search "" href="/watch?v="
                  IF found
                       ResultLink = "http://www.youtube.com/watch?v=<<11 characters after the search item>>"
                       ResultName = All the Characters after );">" to newline
                  ENDIF
             ENDSEARCH
     ENDWHILE
ENDPROCEDURE

Last edited by torx; 2007-10-23 at 04:51.
 

The Following User Says Thank You to torx For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 10:32.