Skip to main content

Automatic archiver for radiko program which queried by YAML file.

Project description

radiko Podcast

Test CodeQL Code Coverage Maintainability Dependabot Python versions X URL

タイムフリー 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 を入力します

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

radikopodcast-1.3.0.tar.gz (32.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

radikopodcast-1.3.0-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

Details for the file radikopodcast-1.3.0.tar.gz.

File metadata

  • Download URL: radikopodcast-1.3.0.tar.gz
  • Upload date:
  • Size: 32.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for radikopodcast-1.3.0.tar.gz
Algorithm Hash digest
SHA256 fab45518afaf71c560471c31c49422f9254f2588fbc16e13c59f3d409e17f6d2
MD5 a9538705b84c040a40900cee0f1335c8
BLAKE2b-256 fe52a501bf7d618fa1b134c755462f7dfc76ffa5ad947cbedfd7da89e74939be

See more details on using hashes here.

File details

Details for the file radikopodcast-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: radikopodcast-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 31.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for radikopodcast-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 501c2f037813a03e895ac41bfdc575938bd4f10bcf0b8c2f65beff1a71e02e46
MD5 7b39879a8aa157f25f8e1ee98505324b
BLAKE2b-256 6f6c969f6a3c424cb3ed05b8982c5c9e755d3857157f6504f6eca88ed42426d9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page