Offliberty
A simple interface to the offliberty.com download service.
Installation
Add this line to your application's Gemfile:
gem 'offliberty'
And then execute:
$ bundle
Or install it yourself as:
$ gem install offliberty
Usage
From ruby
require 'offliberty'
song = Offliberty::Off.new("https://www.youtube.com/watch?v=A4GhUglZ5NU")
song.offliberate # Get the download link
song.download # Download the song near this ruby script
From terminal
$ off https://www.youtube.com/watch?v=A4GhUglZ5NU
Or with a textfile with multiple links
$ cat example
https://www.youtube.com/watch?v=uiGpv-UeiDI
not link
https://www.youtube.com/watch?v=oHowqKYSXNI
random text
$ off example
Requesting...
Downloading...
Finished!
Requesting...
Downloading...
Finished!
Contributing
- Fork it ( https://github.com/radubogdan/ruby-offliberty/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request