This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# change these depending on where you want to pull from | |
# for the hs archive, the URL should be 'http://www.quizbowlpackets.com' | |
baseurl='http://collegiate.quizbowlpackets.com' | |
outdir='collegiate' | |
curl -s $baseurl | # get index page | |
grep '<SPAN class="Name">' | # extract lines containting packet links | |
sed -e 's/^.*href="//' -e 's/">/*/' -e 's/<\/a>.*$//' | # parse url and name |