Record the radiko.jp program.
Please do not use this project for commercial use. Only for your personal, non-commercial use.
ๅไบบใงใฎ่ฆ่ดใฎ็ฎ็ไปฅๅคใงๅฉ็จใใชใใงใใ ใใ.
$ docker pull yyoshiki41/radigo
You can launch a radigo container and exec radigo
command.
# Mount the volume `"$PWD"/output`(default output path) into `/output` in the container
$ docker run -it \
-v "$(pwd)"/output:/output \
yyoshiki41/radigo rec -id=LFR -s=20180401010000
Now downloading..
/
+------------+---------------------------------+
| STATION ID | TITLE |
+------------+---------------------------------+
| LFR |ใใ ใชใผใใชใผใฎใชใผใซใใคใใใใใณใใใใใใใใใใใใใใ|
+------------+---------------------------------+
| Completed!
/output/20180401010000-LFR.aac
Open the output file created by the container on your local machine.
$ open $PWD/output/20180401010000-LFR.aac
ใปGo 1.11 or higher
$ make installdeps
$ make build
$ radigo help
Or release binaries are available on the releases page.
- ffmpeg
$ make docker-build
$ docker run -it yyoshiki41/radigo help
$ radigo help
usage: radigo [--version] [--help] <command> [<args>]
Available commands are:
area Get available station ids
browse Browse radiko.jp
browse-live Browse radiko.jp live
rec Record a radiko program
rec-live Record a live program
$ radigo area
Area ID: JP13
+----------------------+----------------+
| NAME | STATION ID |
+----------------------+----------------+
| TBSใฉใธใช ใใใ | TBS |
| ๆๅๆพ้ใใใใใใใใใใใใใใใใใใใใใใใใใใใใใ| QRR |
| ใใใใณๆพ้ | LFR |
| ใฉใธใชNIKKEI็ฌฌ1 | RN1 |
| ใฉใธใชNIKKEI็ฌฌ2 | RN2 |
| interfm | INT |
| TOKYO FM | FMT |
| J-WAVE | FMJ |
| ใฉใธใชๆฅๆฌใใใใใใใใใใใใใใใใใใใใใใใใใใใ| JORF |
| bayfm78 | BAYFM78 |
| NACK5 | NACK5 |
| ๏ผฆ๏ผญใจใณใใใใใใใใใใใใใใใใใใใใใใใใใใใใ| YFM |
| LuckyFM ่จๅๆพ้ใใใใใใใใใใใใใ| IBS |
| ๆพ้ๅคงๅญฆใใใใใใใใใใใใใใใใใใใใใใใใใใใใใ| HOUSOU-DAIGAKU |
| NHKใฉใธใช็ฌฌ1๏ผๆฑไบฌ๏ผใใใใใใใใใใใใ| JOAK |
| NHK-FM๏ผๆฑไบฌ๏ผใใใใใใใใใใใใใใใใใใใใ| JOAK-FM |
+----------------------+----------------+
Area ID
is ISO 3166-2 code that is defined for 47 prefectures.
c.f. ISO 3166-2:JP - Wikipedia
Record the program using the timefree.
$ radigo rec -id=LFR -s=20161126010000
Now downloading..
+------------+---------------------------------+
| STATION ID | TITLE |
+------------+---------------------------------+
| LFR |ใใ ใชใผใใชใผใฎใชใผใซใใคใใใใใณใใใใใใใใใใใใใใ|
+------------+---------------------------------+
Completed!
/tmp/output/20161126010000-LFR.aac
Record the live streaming program.
$ radigo rec-live -id=LFR -t=3600
Now downloading..
+------------+---------------+
| STATION ID | DURATION(SEC) |
+------------+---------------+
| LFR | 3600 |
+------------+---------------+
Completed!
/tmp/output/20161205083547-LFR.aac
Browse radiko.jp.
$ radigo browse -id=LFR -s=20161126010000
$ radigo browse-live -id=LFR
Default: ${PWD}/output
If you want to change the working dir, set the environment variables.
RADIGO_HOME
If use the area free, set the environment variables.
RADIKO_MAIL
RADIKO_PASSWORD
# export RADIKO_MAIL="[email protected]" && export RADIKO_PASSWORD="password"
$ radigo rec -a=JP13 -id=LFR -s=20161126010000
(caused by the limitation of file descriptors maybe.)
Increase the number of file descriptors.
$ ulimit -n 16384
radigo is licensed under the GPLv3 license for all open source applications.
Please do not use this project for commercial use, it is not intended to be used for commercial use.
Yoshiki Nakagawa