title: how to create script for downloading random youtube videos?
body: <p><strong>i need a script that:</strong></p>
  
  <ul>
  <li><em>creates a folder in the current path named videos</em></li>
  <li><em>continuously checks, via pwgen, if randomly generated youtube URLs retrieve valid URLs</em></li>
  <li><em>when a URL is created launches a parallel process to download youtube or vimeo videos</em></li>
  <li><em>the youtube videos are encoded in *.mov and stored in the movie folder</em></li>
  <li><em>the names range from 1 to infinite</em></li>
  <li><em>when the video download finishes the parallel process stops</em></li>
  <li><em>when the script stops it deletes de movie folder</em></li>
  </ul>
  
  <p><strong>the purpose of this script is to:</strong></p>
  
  <ul>
  <li><em>create an interactive installation with openframeworks, or a similar tool</em></li>
  </ul>
  
  <p><strong>i want to use:</strong></p>
  
  <ul>
  <li><em>youtube-dl, ffmpeg and pwgen</em></li>
  </ul>
  
  <p><strong>I will be using:</strong></p>
  
  <ul>
  <li><em>mac os high sierra</em></li>
  <li><em>everything will be opensource and published on github</em></li>
  </ul>
  
  <p><strong>pwgen will have to take as arguments:</strong></p>
  
  <ul>
  <li><em>the number of necessary characters to form a url and the number of hashes to generate</em></li>
  </ul>
  
  <p><strong>youtube-dl and ffmpeg will start from something like:</strong></p>
  
  <ul>
  <li><em>youtube-dl -t mov URL</em></li>
  </ul>
  
  <p><strong>that's all i know by now</strong></p>