Welcome, guest | Sign In | My Account | Store | Cart

Based off PyGoogle, this script searches Youtube.

Python, 9 lines
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.

Created by Jonny Reeves on Sat, 4 Oct 2008 (MIT)
Python recipes (4591)
Jonny Reeves's recipes (2)

Required Modules

Other Information and Tasks