Last active
October 2, 2022 22:43
-
-
Save banzeh/9a45628a89de993383b36687c06f93fa to your computer and use it in GitHub Desktop.
Resultado da eleição Powershell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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'} |
Author
banzeh
commented
Oct 2, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment