{"id":15917500,"url":"https://github.com/takuya/play-radiko","last_synced_at":"2025-03-24T07:32:02.671Z","repository":{"id":44007170,"uuid":"104030641","full_name":"takuya/play-radiko","owner":"takuya","description":"radikoのプレイをするスクリプト","archived":false,"fork":false,"pushed_at":"2023-09-25T18:05:38.000Z","size":316,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-19T03:13:20.240Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takuya.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-19T05:30:43.000Z","updated_at":"2024-04-10T11:34:07.000Z","dependencies_parsed_at":"2022-07-09T14:46:21.694Z","dependency_job_id":null,"html_url":"https://github.com/takuya/play-radiko","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fplay-radiko","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fplay-radiko/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fplay-radiko/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fplay-radiko/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takuya","download_url":"https://codeload.github.com/takuya/play-radiko/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245227512,"owners_count":20580893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-06T18:11:02.113Z","updated_at":"2025-03-24T07:32:02.433Z","avatar_url":"https://github.com/takuya.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Radiko play from command \n\n```\n./play_radiko.py abc 3600\n```\n\n### requirements\n\nRadiko.py \n\n- Python 3.6 newer -- for f'' string\n- swfextract(1) --- required for auth, included in swftools\n- mplayer(1)  --- for play audio \n- rtmpdump(1) --- for radiko simule streaming \n- ffmpeg(1)  ---  for radiko time free \n- GNU date(1) --  for radiko time free \n- omxplayer(1)  ---  used in raspbian\n\nRadikoHLS (m3u8)\n\n- Python 3.6 newer -- for f'' string\n- mplayer(1)  --- for play audio \n- ffmpeg(1)  ---  for radiko time free \n- GNU date(1) --  for radiko time free \n- omxplayer(1)  ---  for raspbian\n\n\n### date(1) command \n\nTo parse \"from date\", We use GNU date(1), so that be sure GNU date is in your PATH.\n\n\n#### for mac OS X\n\n```\nbrew install rtmpdump ffmpeg mplayer swftools coreutils\n```\n\n#### for debian \n```\nsudo apt install rtmpdump ffmpeg mplayer swftools\n```\n\n#### for Raspberry Pi ( raspbian )\n```\nsudo apt install rtmpdump ffmpeg swftools\n```\n\n###### for raspbian users\n\nThis radiko.py force to use Audio Jack. \nif you want to use HDMI for playing  , Change Source like this \n\n```\nomxplayer -o local # audio jack \u003c- radiko.py \nomxplayer -o hdmi  # hdmi \nomxplauer -o auto  # raspi default\n```\n\n\n\n### Examples\n\nusage examples.\n\n#### Example 01:\nPlay radiko abc 1008 from osaka  for 1 hour \n```\n./play_radiko.py abc 3600\n```\n#### Example 02:\nPlay radiko TimeFree abc 1008 from 2017-09-18 12:00 to 3600\n```\n./play_radiko.py abc  -d 3600 -f '2017-09-18 12:00'\n```\n\n#### Example 03 :\nPlay Radiko TimeFree  ABC 1008 today 15:00 ピタッと \n```\n./play_radiko.py abc  -f 15:00 -d 10800\n```\n\n#### Example 04 : \nPlay Radiko via ssh ( to correct area )\nIf  Radiko failed to detect area , play from ssh is useful way.\n```\nssh mine 'LANG=ja_JP.UTF-8 python.3.6 play_radiko.py abc --no-play-live --output -'  | mplayer - -cache 128\n```\n\n#### Example 05 : \nUsage sample Save stream as sample command im ./bin.\n```\npython bin/rec_radiko_timefree.py -c ABC -d 10800 -f '2021-09-30 12:00' \n```\n\nWhen specify day of week,  use date ( GNU date ) is casual way.\n```\npython bin/rec_radiko_timefree.py -c ABC -d 10800 -f  \"$( date  --date 'last thursday'  +'%Y-%m-%d 12:00')\n```\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fplay-radiko","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakuya%2Fplay-radiko","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fplay-radiko/lists"}