➔ [1] Word Search
| 0 minute read
➔ [1] Youtube Proxy
| 2 minute read
The following script1 runs on vanilla Node.js and requires an executable of youtube-dl. If it’s not located in the same directory as the script, change the line
var job = spawn('./youtube-dl', args);
to something like
var job = spawn('~/path/to/youtube-dl', args);
Usage examples Download a video in MP4 from YouTube:
http://example.com:8567/https://www.youtube.com/watch?v=XXXXXXX
Download a video from YouTube and extract audio in M4A format:
http://example.com:8567/https://www.youtube.com/watch?v=XXXXXXX.m4a
Currently, the headers it sets are designed for downloading.
Read More >>