:

# Unix shell script for grabbing vote count files from Elections Ontario.
# Requires the supplemental text file "ridinglist", and the command "wget".
# By Jeffrey S. Rosenthal
# See: http://probability.ca/ontario2018/

set -e

mkdir -p rawdata

for i in `cat ridinglist`
do
  wget https://www.elections.on.ca/content/ngw/en/election-results/$i
  mv $i rawdata
done

