Skip to content

Instantly share code, notes, and snippets.

@begnini
Last active November 5, 2022 15:56
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 begnini/ebf9c3cffc10b41559e7ac2355f29eca to your computer and use it in GitHub Desktop.
Save begnini/ebf9c3cffc10b41559e7ac2355f29eca to your computer and use it in GitHub Desktop.
Baixa os arquivos transmitidos para a totalizacaos das Eleicoes 2022
#!/bin/bash
STATES="AC AL AM AP BA CE DF ES GO MA MG MS PA PB PE PI PR RJ RN RO RR RS SC SE SP TO ZZ"
for state in $(echo $STATES); do
for round in $(echo "1 2"); do
echo 'Downloading', $state, 'round', $round;
wget -nv --show-progress --header="User-Agent: Mozilla" https://cdn.tse.jus.br/estatistica/sead/eleicoes/eleicoes2022/arqurnatot/bu_imgbu_logjez_rdv_vscmr_2022_${round}t_${state}.zip
done;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment