#!/bin/bash
# curl com fingerprint de navegador para passar pelo Akamai do TSE
UA="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
curl -s --http2 --compressed -m 40 \
 -H "User-Agent: $UA" \
 -H 'sec-ch-ua: "Chromium";v="128", "Not;A=Brand";v="24"' \
 -H 'sec-ch-ua-mobile: ?0' -H 'sec-ch-ua-platform: "macOS"' \
 -H 'Accept: application/json, text/plain, */*' \
 -H 'Accept-Language: pt-BR,pt;q=0.9,en;q=0.8' \
 -H 'Sec-Fetch-Site: same-origin' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Dest: empty' \
 -H 'Referer: https://divulgacandcontas.tse.jus.br/divulga/' \
 "$@"
