A driver for downloading video sources from various sites. A lot of modules have been ported from youtube-dl for use in node without the dependency of python.
- Youtube (ytdl-core)
- Yahoo
- DailyMotion
- Vimeo
- Veoh
All downloaders are implemented using the deferred interface (Q). These calls return streams that can be piped to any writable stream of choice.
Downloading a file is simple. Simply pass the url to the extractor of choice and pipe the response to what ever stream you need.
- Dailymotion
- Vimeo
- Veoh
- Yahoo
- Youtube
- YouTube
var fs = require('fs');
var dlvid = require('dlvid-core').Youtube;
var download = dlvid.download('http://...', { filter: 'mp4', quality: 'highest'});
download.done(function(file){
file.pipe(fs.createWriteStream('movie.mp4'));
});
- Vimeo
var fs = require('fs');
var dlvid = require('dlvid-core').Vimeo;
var download = dlvid.download('http://...', { quality: '720p', type: 'progressive'});
download.done(function(file){
file.pipe(fs.createWriteStream('movie.mp4'));
});
See the current list here
If you'd just like to gather information about the file available, you can do that as well.
var info = dlvid.info('http://...').done(function(data){
// do whatever you need to do
});
npm test