title: How to download youtube videos using a python script
body: <p>I need to download videos from youtube using a python script. However i am unable to get the url of the video from the youtube page. </p>
  
  <p>For example, given the url: <a href="http://www.youtube.com/watch?v=5qcmCUsw4EQ&amp;feature=g-all-u&amp;context=G2633db8FAAAAAAAAAAA" rel="nofollow">http://www.youtube.com/watch?v=5qcmCUsw4EQ&amp;feature=g-all-u&amp;context=G2633db8FAAAAAAAAAAA</a></p>
  
  <ol>
  <li>I need to download the video as a flv or any other format. Also i need to be able to download it multiple quality.</li>
  <li>I tried several scripts like youtube-dl and quvi but they all give errors and dont work. Please help. It shall be deeply appreciated.</li>
  </ol>