Bayerischer Rundfunk airs a pretty decent radio show called "Zündunk", featuring new music, politics and culture.
For people who missed a show, Bayerischer Rundfunk provides recordings on its web page.
Download your favourite radio shows from Bayerischer Runfunk!
But only for less than one week. And only within a player, without a convenient download button.
That's why I wrote this Python 3 script.
This Python 3 script is a simple command line tool to downloads all currently available Zündfunk episodes from Bayerischer Rundfunk's web page as MP3 files.
The script "download-nachtmix.py" works the same way as "download-zuendfunk.py"
This is a Python 3 command line script to download shows from any channel from Bayerischer Rundfunk's "Live" web site.
The shows are saved in MP3 format and get tagged with all available information, including chapter markers.
### Requirements
Python 3 with modules "mutagen", "beautifulsoup4" and "requests".
(On Debian/Ubuntu: `sudo apt install python3 python3-mutagen python3-requests python3-bs4`)
Python 3 with modules "pydub", "mutagen", "beautifulsoup4" and "requests".
(On Debian/Ubuntu: `sudo apt install python3 python3-mutagen python3-requests python3-bs4 pydub`)
The script searches Bayerischer Rundfunk's web site and downloads all currently available "Zündfunk" episodes into the given target directory.
Episodes aready downloaded get skipped, so it is well suited for cron jobs.
* `Channel` can be something like "Bayern2", "BR-Klassik", "BR24", "Puls", ...
* `Show` is the show's title as displayed in BR's "Live" (player https://www.br.de/radio/live/)
* `TargetDirectory` is the directory you want the MP3 files get saved in
The episode's metadata gets stored in the downloaded MP3 file's ID3 tag.
If a playlist is available for the episode it gets written in ID3 tag's "Comment" field.
Episodes aready downloaded get skipped, so this script is well suited for cron jobs.
**Example:**
```./br-download.py bayern2 "IQ - Wissenschaft und forschung" "/data/aufnahmen```
```./zuendfunk-download.py Downloads/Zündfunk```
This would download all available "IQ - Wissenschaft und Forschung" episodes from Bayern 2 and save them with full ID3 tags in the "/data/aufnahmen" directory.
This would download all available Zündfunk episodes and save them with correct ID3 tags in the "Downloads/Zündfunk" directory.
### Limitations
* As of January 2021 Bayerischer Rundfunk only offers the last 5 hours of its program as recordings, not the last 7 days
* Timestamps are way off. This means shows start earlier or later than expected and chapter markers are wrong. As it's the same on Bayerischer Rundfunk's "Live" web page it's most likely their fault.
### See also
If you want to listen to the downloaded shows with your podcast player: https://github.com/citronalco/mp3-to-rss2feed creates a RSS2 feed from MP3 files.
description="Find all availabe recordings of a show in Bayerischer Runfunk's player, download them as MP3 files and save the shows' metadata in the ID3 tags.",
)
parser.add_argument("Channel",help="The channel's name (e.g. \"Bayern2\", \"BR-Klassik\", \"Puls\")")
parser.add_argument("ShowTitle",help="The show's title (e.g. \"Zündfunk\")")
parser.add_argument("Directory",help="The directory to save the files in (e.g. \"Downloads/Zündfunk Recordings\")")
args=parser.parse_args()
CHANNEL=args.Channel
SHOW=args.ShowTitle
DESTDIR=args.Directory
ifnotos.path.isdir(DESTDIR):
print("Directory %s does not exist!"%DESTDIR,file=sys.stderr)