Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Created August 7, 2017 15:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ongaeshi/3f536532a1d96b582dee5d75a1e9fd28 to your computer and use it in GitHub Desktop.
Save ongaeshi/3f536532a1d96b582dee5d75a1e9fd28 to your computer and use it in GitHub Desktop.
# coding: utf-8
require "radiko/radiko"
include Radiko
def c(channel, wday)
Radiko::Radiko.new(channel, last_wday(wday + 1, 1, 0)).astr(channel)
end
def junk(title, wday)
print title, "\n",
c("TBS", wday), " ",
c("RBC", wday), " ",
c("CRK", wday), " ",
c("RKB", wday), " ",
c("HBC", wday), " ",
"\n\n"
end
junk("伊集院光・深夜の馬鹿力", 1)
junk("爆笑問題カーボーイ", 2)
junk("山里亮太の不毛な議論", 3)
junk("おぎやはぎのメガネびいき", 4)
junk("バナナマンのバナナムーンGOLD", 5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment