Skip to content

Commit 548ff1c

Browse files
committed
Pass referer to correios 🤦
1 parent ec579de commit 548ff1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CepTracker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ def _request(self, cep):
2424
"mensagem_alerta": "",
2525
"endereco": cep,
2626
"tipoCEP": "ALL",
27+
}, headers={
28+
"Referer": "https://buscacepinter.correios.com.br/app/endereco/index.php?t",
2729
}, timeout=10)
2830
try:
2931
response.raise_for_status()

0 commit comments

Comments
 (0)