title: How to rebuild python youtube-dl from the source
body: <p>At first I want to admit that I am a noob in python programming. but still somehow I have managed to figure out how to modify some python regular expressions as the extractor can get some extra data for me. Unfortunately I don't know how to build executable from the changed  source code. because I am using a PHP wrapper to use the youtube-dl ubuntu executable for <strong>scraping</strong> some data.</p>
  <p>I have noticed there is a 6+ years old post on this in</p>
  <p><a href="https://stackoverflow.com/questions/12683518/python-youtube-dl-recompile">Python youtube-dl recompile</a></p>
  <p>but unfortunately the solution didn't provide the way to recompile or rebuild. I even haven't found how to rebuild in the official documentation for developer here in</p>
  <p><a href="https://github.com/ytdl-org/youtube-dl#developer-instructions" rel="nofollow noreferrer">https://github.com/ytdl-org/youtube-dl#developer-instructions</a></p>
  <blockquote>
  <p>Most users do not need to build youtube-dl and can download the builds
  or get them from their distribution.</p>
  <p>To run youtube-dl as a developer, you don't need to build anything
  either.</p>
  </blockquote>
  <p>and at the end for open source contribution using git</p>
  <blockquote>
  <ol start="11">
  <li>Finally, create a pull request. We'll then review and merge it.</li>
  </ol>
  </blockquote>
  <p>but couldn't find anything to build it locally to use locally.</p>