Skip to content

Instantly share code, notes, and snippets.

@banzeh
Last active October 2, 2022 22:43
Show Gist options
  • Save banzeh/9a45628a89de993383b36687c06f93fa to your computer and use it in GitHub Desktop.
Save banzeh/9a45628a89de993383b36687c06f93fa to your computer and use it in GitHub Desktop.
Resultado da eleição Powershell
$url = 'https://resultados.tse.jus.br/oficial/ele2022/544/dados-simplificados/br/br-c0001-e000544-r.json'
$result = (Invoke-WebRequest -Method GET $url).Content | ConvertFrom-Json | Select-Object -Expand cand
$result | Select seq, @{l='Candidato';e='nm'}, @{l='Votos válidos';e='vap'}, @{l='%';e='pvap'}
@banzeh
Copy link
Author

banzeh commented Oct 2, 2022

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment