Skip to content

Instantly share code, notes, and snippets.

@asauber
Created December 10, 2014 15:26
Show Gist options
  • Save asauber/b341ab7f2011eb75db43 to your computer and use it in GitHub Desktop.
Save asauber/b341ab7f2011eb75db43 to your computer and use it in GitHub Desktop.
Download all FLOSS Weekly episodes, in reverse order, skipping those that are already downloaded
#!/bin/bash
wget_floss_n () {
floss_number=$(printf "%04d\n" $1)
wget -nc http://www.podtrac.com/pts/redirect.mp3/twit.cachefly.net/audio/floss/floss$floss_number/floss$floss_number.mp3
}
latest_show=$(wget http://twit.tv/show/floss-weekly -O - | grep "show-title" | egrep -o "\d+" | sort -ru | head -n 1)
for n in $(seq $latest_show -1 1)
do
wget_floss_n $n
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment