opengeodata.de

TV3 News aus Radio & Presse - Bulk Download with Bash

2015-09-09

Maybe someone finds this useful by either speaking/learning German or having a similar task at hand.

The TV3 news site is a daily updated site with radio features and news from the day before. Always interesting to listen to. Bulk download for a whole day can be done via the .m3u file which is also updated daily and has a consistent date string as filename. Therefore some wget and bash scripting will do.

#!/bin/bash
foo='http://www.tvdrei.de/POD/POD/Archiv/2015/Playlist/'
bar=$(date +%Y%m%d -d "yesterday")
rar='.m3u'

wget $foo$bar$rar -O $bar.txt

wget -c -nc -i $bar.txt

rm $bar.txt