Based off PyGoogle, this script searches Youtube.
1 2 3 4 5 6 7 8 9 | import webbrowser
while 1:
message = "You searched:"
s = raw_input('Search: ')
url_tube = 'http://uk.youtube.com/results?search_query='
url_add1 = ''
s = '+'.join((s.split(' ')))
print message,s
webbrowser.open(url_tube+s)
|
It works just like PyGoogle. Input your keywords and your default browser should pop up with the results.