Record streaming radio with streamripper

Linux
Internet
Author

Vinh Nguyen

Published

April 13, 2012

Yes, many radio shows are available as podcasts. However, some are not. If a radio show is also broadcasted via a live stream online, then we could record it with streamripper. I did so as follow:

sudo apt-get install streamripper ## install
## record for 60 seconds
streamripper http://kpcclive1.publicradio.org:80/ -s -l 60 -a "Prarie - %d"

To have the show be recorded automatically, first create record.sh:

#! /bin/bash

## set in crontab:
## 59 17 * * 6 /path/to/record.sh
cd /path/to/save/; streamripper http://kpcclive1.publicradio.org:80/ -s -l 3720 -a "Prarie - %d" &> /dev/null

Then add the following cron entry via crontab -e:

59 17 * * 6 /path/to/record.sh