mgzam / youtube-dl

Download YouTube videos as a function

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

youtube-dl

YouTube download via a function

$ git clone https://github.com/faas-and-furious/youtube-dl \
  cd youtube-dl

Now deploy:

$ faas-cli deploy

The YAML file is optional:

$ faas-cli deploy -f \
https://raw.githubusercontent.com/faas-and-furious/youtube-dl/master/stack.yml

Or from the local file:

$ faas-cli deploy

Try it out:

$ echo -n https://www.youtube.com/watch?v=nG2rNBFzkGE | \
  faas-cli invoke youtubedl > cat_jump.mov

Or with curl:

$ curl localhost:8080/function/youtubedl \
 -d "https://www.youtube.com/watch?v=BJDJFMlvV_8" > cat_purr.mov

About

Download YouTube videos as a function


Languages

Language:Dockerfile 63.9%Language:Shell 36.1%