Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rebuild python youtube-dl from the source

Tags:

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 scraping some data.

I have noticed there is a 6+ years old post on this in

Python youtube-dl recompile

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

https://github.com/ytdl-org/youtube-dl#developer-instructions

Most users do not need to build youtube-dl and can download the builds or get them from their distribution.

To run youtube-dl as a developer, you don't need to build anything either.

and at the end for open source contribution using git

  1. Finally, create a pull request. We'll then review and merge it.

but couldn't find anything to build it locally to use locally.