Skip to content

radubogdan/node-offliberty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Offliberty

NPM

Offlibery is a simple interface to the offliberty.com download service.

Usage

Directly from the terminal

You can pass multiple URLs:

$ sudo npm install -g offliberty
$ off https://www.youtube.com/watch?v=Y1st6O1tqII https://www.youtube.com/watch?v=VWV7CGx9MAQ

Or you can pass en entire file: Notice: Reading from file is synchronous, don't use large files.

$ cat music.txt
http://www.youtube.com/watch?v=0s7E2uIn3tM
http://www.youtube.com/watch?v=iSRu0_DrTyU
http://www.youtube.com/watch?v=C3QK1FVVNNk
$ off music.txt
Requesting...
http://k27.offliberty.com/C3QK1FVVNNk.mp3
http://k12.offliberty.com/iSRu0_DrTyU.mp3
http://k52.offliberty.com/0s7E2uIn3tM.mp3
Requesting...
http://k18.offliberty.com/VWV7CGx9MAQ.mp3
http://k14.offliberty.com/Y1st6O1tqII.mp3

From awesome Javascript:

var offliberty = require('offliberty');

console.log('Requesting...');
offliberty.off('https://www.youtube.com/watch?v=CIqWwiC1BFI', function (err, downloadUrl) {
    console.log(err || downloadUrl);
});
Requesting...
http://k15.offliberty.com/CIqWwiC1BFI.mp3

Methods

off(url, callback)

  • url: String representing of the URL you want to get download links for.
  • callback: the callback function

Test

$ npm test

License

See the LICENSE file.

Notes

Special thanks to Ionică Bizău who forked and helped me improve this module, and Marius Gavrilescu who had the idea and made this first for the Perl Community.

About

A simple interface to the offliberty.com download service.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •