ruby script to record らじる★らじる streaming
Latest commit cd13ff7 Nov 28, 2013 @harupong Up version 0.2.1
Celebrating the introduction of fixing harupong/rudika#7 for
Failed to load latest commit information.
bin Move the main code from bin/ripdiru to lib/ripdiru.rb Oct 21, 2013
lib Up version 0.2.1 Nov 28, 2013
.gitignore Add log directory to .gitignore Oct 15, 2013
Gemfile Shamelessly copying ripdiko executable as an example Oct 15, 2013
LICENSE.txt Shamelessly copying ripdiko executable as an example Oct 15, 2013 Update Oct 22, 2013


ripdiru rips and saves Radiru*Radiru, NHK netradio, in MP3. Metadata such as title and duration are automatically embeded to MP3s with the data fetched from the supposedly unofficial API.


Add this line to your application's Gemfile:

gem 'ripdiru'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ripdiru


Set up environment variables:

  • RIPDIRU_OUTDIR: Output directory to save ripped MP3 files. Defaults to ~/Music/Radiru
  • RIPDIRU_BITRATE: Bitrate for re-encoded MP3. 48kbps by default (Radiko upstram is served around 48kbps)

Run ripdiru <station-id> and the recording will start/stop automatically. Currently supported stations are as follows:

  • NHK1: Radio-1st(ラジオ第1)
  • NHK2: Radio-2nd(ラジオ第2)
  • FM: NHK-FM


Recommended to install the following:

  • Ruby 1.9
  • Nokogiri
  • ffmpeg

Special thanks to


Haruo Nakayama (@harupong)


  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. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request