radiko Podcast
タイムフリー 1 週間では足りない人向けの radiko 番組自動アーカイブコマンドです
特徴
- 対象の番組をタイムフリーから検索し、自動的にアーカイブ
- 複数の番組を同時にアーカイブ
対象の番組をタイムフリーから検索し、自動的にアーカイブ
config.yml ファイルに設定を記述して radiko-podcast コマンドを実行すると、
自動的にタイムフリーを検索して、見つかった番組を
output/ ディレクトリーにアーカイブし続けます
アーカイブした番組は m4a ファイルになるので、 iTunes で iPhone に入れることができ、 外出中でも sim の通信パケットを消費せずに番組を聴くことができます
コマンドを実行したままにしておけば、 radiko が夜間に新しく追加するタイムフリーの番組表も 自動的に検索してアーカイブを行い続けます
複数の番組を同時にアーカイブ
radiko の番組のアーカイブには時間がかかりますが、
この radiko-podcast コマンドは複数番組を同時にアーカイブできます
同時に実行するアーカイブのプロセス数は、設定ファイルで調整できます
動作環境の要件
- FFmpeg
クイックスタート
1. インストール
pip install radikopodcast
2. config.yml の作成
# エリア ID (詳細は "ISO 3166-2:JP" で検索)
area_id: JP13
# 同時に実行するアーカイブのプロセス数
number_process: 3
# アーカイブするファイルが既に存在した場合、コマンドの実行を停止するかどうか
# true: 既に存在したファイルは上書きせず、他の番組のアーカイブを続けます
# false: コマンドの実行を停止します
stop_if_file_exists: false
# いずれかのキーワードで見つかった番組をアーカイブします
# 検索対象の情報は番組名のみです
keywords:
- "SAISON CARD TOKIO HOT 100"
- "K's Transmission"
- "ROPPONGI PASSION PIT"
- "カフェイン11"
# タイムフリー30 プランに加入したアカウントでログインした際の radiko_session を設定すると、
# 30 日まで遡ってアーカイブできます
# この値は開発者ツールの Network タブを開き、
# ログインした radiko で画面遷移した際のリクエストをクリック、
# Headers タブで Request Headers の Cookie を参照するなどして確認できます
radiko_session: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3. output/ ディレクトリーの作成
mkdir output
この時点でディレクトリー構成は次のようになっています:
your-workspace/
+----output/
+----config.yml
4. コマンドの実行
radiko-podcast
すると、対象の番組をタイムフリーから検索し、
見つかった番組を output/ ディレクトリーに自動的にアーカイブし続けます
5.終了する場合、ターミナルで Ctrl + C を入力します
Metadata
Release files for radikopodcast 1.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| radikopodcast-1.4.1.tar.gz | 35.1 kB | Without provenance | Details for radikopodcast-1.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| radikopodcast-1.4.1-py3-none-any.whl | Python 3 | none | any | Details for radikopodcast-1.4.1-py3-none-any.whl |
Total release size: 70.2 kB
Release files / radikopodcast-1.4.1.tar.gz
| Download URL | radikopodcast-1.4.1.tar.gz |
|---|---|
| Size | 35.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f08f5bd4d6e3b2be0c02f9f9d51bd9c1be45f0b92d35a9fc0167ce8988d63d8
|
|
BLAKE2b-256 checksum How to use checksums |
553d6643a5b9215a80faf89cca58c1cf9ff37a968dc1cc887679e7c6a228c7a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / radikopodcast-1.4.1-py3-none-any.whl
| Download URL | radikopodcast-1.4.1-py3-none-any.whl |
|---|---|
| Size | 35.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
670ffa9ac0e4fb16ea6a8263732996481857baeab3df2b7b9e64c7302597e844
|
|
BLAKE2b-256 checksum How to use checksums |
bda82e525091b8cf007da088a3806964233fc4aa03fa8fed4f589ceee0528d34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for radikopodcast 1.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.