Skip to content

Instantly share code, notes, and snippets.

@lebarde
Created April 29, 2013 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lebarde/5481294 to your computer and use it in GitHub Desktop.
Save lebarde/5481294 to your computer and use it in GitHub Desktop.
To download automatically MIDI files from cyberbass.com :-)
#!/bin/sh
# Récupération des fichiers MIDI de cyberbass.com
ADRESSE=http://www.cyberbass.com/Major_Works/Bach_J_S/
FICHIER=bach_js_b_minor_mass.htm
wget $ADRESSE/$FICHIER
cat $FICHIER | grep -o CyberBassPlay\(\'.*\' | sed 's/CyberBassPlay('"'"'\(.*\)'"'"'/\1/g' > out.tmp
while read MIDFILE;
do wget $ADRESSE/$MIDFILE.mid
done < out.tmp
rm out.tmp
## EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment