Sha256: 01dc4f21b7c3e65b2961d8c8eaa6f2b27d4dcefd58451f74fcfb961ff073bf4f
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
# youtube-dl.rb Ruby wrapper for [youtube-dl](http://rg3.github.io/youtube-dl/). [![Build Status](https://travis-ci.org/layer8x/youtube-dl.rb.svg?branch=master)](https://travis-ci.org/layer8x/youtube-dl.rb) ## Installing youtube-dl This gem does not ship with the `youtube-dl` command-line program (yet!) so you will need to install `youtube-dl` manually. Luckily there are three ways to do it. ### The easy way Use your distro's package manager! $ apt-get install youtube-dl $ brew install youtube-dl Or through Pip $ pip install youtube-dl ### The slightly harder way ```bash sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+x /usr/local/bin/youtube-dl ``` ## Install the gem Add this line to your application's Gemfile: ```ruby gem 'youtube-dl.rb' ``` And then execute: $ bundle Or install it yourself as: $ gem install youtube-dl.rb ## Usage Pretty simple. ```ruby YoutubeDL.download "https://www.youtube.com/watch?v=gvdf5n-zI14", output: 'some_file.mp4' ``` All options available to youtube-dl can be passed to the options hash ```ruby options = { username: 'someone', password: 'password1', rate_limit: '50K', format: :worst } YoutubeDL.download "https://www.youtube.com/watch?v=gvdf5n-zI14", options ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Pass test suite (`rake test`) 5. Push to the branch (`git push origin my-new-feature`) 6. Create a new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
youtube-dl.rb-0.0.2 | README.md |