# Build the Easy Top Gear Survey site

# fetch the HTML
for f in `seq 5 20`; do 
  wget http://www.topgear.com/content/features/stories/2005/11/stories/01/$f.html; 
done

# make xhtml so minidom can parse it
for f in `seq 5 20`; do 
  tidy -n -asxhtml $f.html > $f.xhtml; 
done

rm *.html

# build the pages with Python
python parse.py > tgs.html
rm *.xhtml
