title: I try this and don't know how to open the first video. This code opens the search in the browser
body: <pre><code>import webbrowser
  
  def findYT(search):
     words = search.split()
  
     link = &quot;http://www.youtube.com/results?search_query=&quot;
  
     for i in words:
        link += i + &quot;+&quot;
  
     time.sleep(1)
     webbrowser.open_new(link[:-1])
  </code></pre>