Credits go out to meanbearwiz who created the project.
Very spartan and opinionated Web / REST interface for downloading youtube videos onto a server. bottle
+ youtube-dl
.
###Run on host networking
python3 youtube-dl-server.py
###Start a download remotely
Downloads can be triggured by supplying the {{url}}
of the requested video through the Web UI or through the REST interface via curl, etc.
####HTML
Just navigate to http://{{address}}:8080/
and enter the requested {{url}}
.
####Curl
curl -X POST --data-urlencode "url={{url}}" http://{{address}}:8080/youtube-dl/q
The server uses bottle
for the web framework and youtube-dl
to handle the downloading. For better or worse, the calls to youtube-dl are made through the shell rather then through the python API.