Skip to content

Instantly share code, notes, and snippets.

@ConsoleCatzirl
Forked from haxwithaxe/hope-dump.sh
Last active July 28, 2016 18:25
Show Gist options
  • Save ConsoleCatzirl/724e43cbcaa7c8e6613d4ba2e28aecf7 to your computer and use it in GitHub Desktop.
Save ConsoleCatzirl/724e43cbcaa7c8e6613d4ba2e28aecf7 to your computer and use it in GitHub Desktop.
download all the things
#!/bin/bash
URL_BASE="http://livestream.com/internetsociety" #"/hopeconf"
VIDEO_TYPE="progressive_url"
dump_track(){
wget -O - "http://livestream.com/internetsociety${1}/hopeconf" 2>/dev/null| sed 's/","/",\n"/g' | grep $VIDEO_TYPE | grep -v smil | sed 's/[",]\+$//;s/.*"//' | grep http
}
for url in $(dump_track | tee lamarr); do
wget --no-clobber "${url}"
done
for url in $(dump_track 2 | tee noether); do
wget --no-clobber "${url}"
done
for url in $(dump_track 3 | tee friedman); do
wget --no-clobber "${url}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment