title: Streaming audio (YouTube)
body: <p>I'm writing a <a href="http://en.wikipedia.org/wiki/Command-line_interface" rel="nofollow noreferrer">CLI</a> for a music-media-platform. One of the features is going to be that you can directly play YouTube videos from the CLI. I don't really have an idea of how to do it, but this one sounded the most reasonable:</p>
  
  <p>I'm going to use of those sites where you can download music from YouTube, for example, <code>http://keepvid.com/</code> and then I directly stream and play this, but I have one problem. Is there any Python library capable of doing this and if so, do you have any concrete examples? </p>
  
  <p>I've been looking, but I found nothing, even not with <a href="http://en.wikipedia.org/wiki/GStreamer" rel="nofollow noreferrer">GStreamer</a>.</p>