• Stars
    star
    187
  • Rank 206,464 (Top 5 %)
  • Language
    Go
  • License
    GNU General Publi...
  • Created about 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Record radiko ๐Ÿ“ป

radigo

Record the radiko.jp program.

godoc go report CircleCI

Docker Stars Docker Build Status Docker Automated build

Please do not use this project for commercial use. Only for your personal, non-commercial use.
ๅ€‹ไบบใงใฎ่ฆ–่ดใฎ็›ฎ็š„ไปฅๅค–ใงๅˆฉ็”จใ—ใชใ„ใงใใ ใ•ใ„.

Installation

Docker images

$ 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

Build the binary from source

ใƒปGo 1.11 or higher

$ make installdeps
$ make build
$ radigo help

Or release binaries are available on the releases page.

Requirements

  • ffmpeg

Build docker image from source

$ make docker-build
$ docker run -it yyoshiki41/radigo help

Usage

$ 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

โ–  area

$ 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        |
+----------------------+----------------+

Note

Area ID is ISO 3166-2 code that is defined for 47 prefectures.

c.f. ISO 3166-2:JP - Wikipedia

โ–  rec

Record the program using the timefree.

$ radigo rec -id=LFR -s=20161126010000
Now downloading..
+------------+---------------------------------+
| STATION ID |              TITLE              |
+------------+---------------------------------+
| LFR        |ใ€€ใ€€  ใ‚ชใƒผใƒ‰ใƒชใƒผใฎใ‚ชใƒผใƒซใƒŠใ‚คใƒˆใƒ‹ใƒƒใƒใƒณใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€ใ€€|
+------------+---------------------------------+
Completed!
/tmp/output/20161126010000-LFR.aac

โ–  rec-live

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 / browse-live

Browse radiko.jp.

$ radigo browse -id=LFR -s=20161126010000
$ radigo browse-live -id=LFR

Optional

- working dir

Default: ${PWD}/output

If you want to change the working dir, set the environment variables.

  • RADIGO_HOME

- radiko premium

If use the area free, set the environment variables.

  • RADIKO_MAIL
  • RADIKO_PASSWORD
e.g.
# export RADIKO_MAIL="[email protected]" && export RADIKO_PASSWORD="password"
$ radigo rec -a=JP13 -id=LFR -s=20161126010000

Known Issues

ERROR: Failed to concat aac files

(caused by the limitation of file descriptors maybe.)

Increase the number of file descriptors.

$ ulimit -n 16384

Resources

License

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.

Author

Yoshiki Nakagawa

More Repositories

1

go-radiko

Go client library for radiko.jp API
Go
43
star
2

ecs-run-task-action

GitHub Action to run a task on Amazon ECS and output CloudWatch Logs
12
star
3

ansible-makefile

Makefile for Ansible Playbooks
Makefile
4
star
4

gcs-image-downloader

Download images using Google Custom Search API.
Go
4
star
5

parallel-dl

Go library for downloading files in parallel.
Go
4
star
6

ses-notification-to-ddb

AWS Serverless Application: Store SES bounces, complaints and deliveries to DynamoDB
Python
4
star
7

docker-viron

Dockerfile
2
star
8

actions-reusable-workflow

2
star
9

avoid-race-condition

Go
2
star
10

go-pushwoosh

Pushwoosh client for Golang
Go
2
star
11

fastlane-playground

For react-native app
Ruby
2
star
12

go-siwa

Go library for SIWA (Sign In With Apple)
Go
2
star
13

codedeploy-notification-to-slack

AWS Serverless Application: CodeDeploy notification to slack
Python
2
star
14

docker-compose-redash

docker compose for redash
2
star
15

docker-rundeck-s3-log-plugin

Dockerfile
1
star
16

dotfiles

dotfiles for Mac OS
Vim Script
1
star
17

slack-message

Post a message using slack incoming webhook
Go
1
star
18

go-resas-api

RESAS (ๅœฐๅŸŸ็ตŒๆธˆๅˆ†ๆžใ‚ทใ‚นใƒ†ใƒ ) API ใฎ Go ใ‚ฏใƒฉใ‚คใ‚ขใƒณใƒˆใƒฉใ‚คใƒ–ใƒฉใƒช
Go
1
star
19

react-native-party-track

React Native wrapper for Party Track SDK
Objective-C
1
star
20

docker-alembic-mysql

Docker image for alembic (support for the MySQL database)
Dockerfile
1
star
21

Numerical_Calculation_Method

ๆ•ฐๅ€ค่จˆ็ฎ—ๆณ•
C
1
star
22

auto-merge-action

GitHub Action to create a pull request and merge automatically
1
star
23

til

Today I Learned
1
star
24

cloudfront-invalidation-triggered-by-s3-events

Serverless: Create a CloudFront invalidation when S3 origin contents changed
Python
1
star