Skip to content

Instantly share code, notes, and snippets.

@khaschuluu
Created November 20, 2010 15:34
Show Gist options
  • Save khaschuluu/707900 to your computer and use it in GitHub Desktop.
Save khaschuluu/707900 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Author: Khaschuluu
# Contact: http://twitter.com/khaschuluu
tmp=/tmp/tmp$$
curl http://vimcasts.org/episodes/archive/ | grep -E '\/episodes' | grep '\"archive\"' | sed -r 's#(^.*"\/)(episodes.*)(" class="archive)(".*)#http:\/\/vimcasts\.org/\2#g' > $tmp-pages
cat $tmp-pages |\
while read page_uri
do
curl $page_uri |\
grep -E "ogg:" |\
sed -r "s#(^.*')(.*)('.*)#\2#g" > $tmp-episodes
cat $tmp-episodes |\
while read episode_uri
do
axel -an 10 -o . $episode_uri
done
done
rm $tmp-*
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment