Created
August 7, 2017 15:20
-
-
Save ongaeshi/3f536532a1d96b582dee5d75a1e9fd28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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