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
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.
Last edited by torx; 2007-10-23 at 04:51.