https://github.com/web-mech/dlvid-core
Download videos from websites (core component)
https://github.com/web-mech/dlvid-core
Last synced: about 1 month ago
JSON representation
Download videos from websites (core component)
- Host: GitHub
- URL: https://github.com/web-mech/dlvid-core
- Owner: web-mech
- License: mit
- Created: 2014-08-14T05:40:53.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-08-09T19:27:45.000Z (almost 6 years ago)
- Last Synced: 2025-04-03T15:03:04.924Z (about 2 months ago)
- Language: JavaScript
- Size: 10.9 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#dlvid-core
[](https://travis-ci.org/web-mech/dlvid-core)
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.
##Providers
- Youtube (ytdl-core)
- Yahoo
- DailyMotion
- Vimeo
- VeohAll downloaders are implemented using the deferred interface (Q). These calls return streams that can be piped to any writable stream of choice.
##Usage
###Downloading
Downloading a file is simple. Simply pass the url to the extractor of choice and pipe the response to what ever stream you need.
######Classes Exported
- Dailymotion
- Vimeo
- Veoh
- Yahoo
- Youtube#####Example
```
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'));
});
```#####Supported Providers
See the current list [here](https://github.com/web-mech/dlvid-core/blob/master/support.md)
###Information
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
});
```###Testing
```
npm test
```