"All of Allegheny County (PA) General Election ballots are available publicly online for anybody to print out.
Just substitute the number from 1 to 1326 to see all ballots for all precincts."
-
CodeMonkeyZ
Anyway - Simple do while loop will get them.
#!/bin/bash
x=1
while [ $x -le 1327 ]
do
wget https://apps.alleghenycounty.us/website/PDF_GEN/GEN%20(${x}).pdf
x=$(( $x + 1 ))
done