Skip to content

Instantly share code, notes, and snippets.

@evgeni
Created December 31, 2012 10:33
Show Gist options
  • Save evgeni/4418851 to your computer and use it in GitHub Desktop.
Save evgeni/4418851 to your computer and use it in GitHub Desktop.
if you want to fetch only a few talks from #29C3 this might be handy
#!/bin/sh
#MIRROR="http://mirror.fem-net.de"
MIRROR="http://ftp.uni-kl.de"
EVENT="CCC/29C3"
QUALITY="mp4-h264-HQ"
TALKS="5146 5319 5275 5198 5219 5088 5285 5385 5210 5374 5244 5239 5306 5044 5327"
BASEURL="${MIRROR}/${EVENT}/${QUALITY}"
get_talk () {
t=$1
f=`wget -q -O- $BASEURL |grep -m1 $t|sed 's#.*href="\([^"]*\).*#\1#'`
if [ -z "$f" ]; then
echo "Talk $t not found at $BASEURL"
else
if [ ! -f $f ]; then
url="${BASEURL}/${f}"
echo wget $url
wget $url
fi
fi
}
for TALK in $TALKS; do
get_talk $TALK
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment