Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Created August 7, 2017 15:20
Show Gist options
  • Save ongaeshi/56379074dc9d9364308f2766e196f222 to your computer and use it in GitHub Desktop.
Save ongaeshi/56379074dc9d9364308f2766e196f222 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 ann(title, wday)
print title, "\n",
c("LFR", wday), " ",
c("CBC", wday), " ",
c("RNB", wday), " ",
c("MRT", wday), " ",
c("YBC", wday), " ",
c("MRO", wday), " ",
"\n\n"
end
ann("菅田将暉", 1)
ann("星野源", 2)
ann("AKB48", 3)
ann("ナインティナイン岡村隆史", 4)
ann("三代目J Soul Brothers 山下健二郎", 5)
ann("オードリー", 6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment