-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathREADME.txt
More file actions
27 lines (21 loc) · 749 Bytes
/
README.txt
File metadata and controls
27 lines (21 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
===============
python-correios
===============
API Python Correios para rastreamento de encomendas.
Exemplo
=======
Utilização básica::
#-*- encoding: utf-8 -*-
from correios import Correios
encomenda = Correios.get_encomenda('RA222491899CN')
print 'Encomenda:', encomenda.identificador
for status in encomenda.status:
print 'Data da atualização:', status.atualizacao.date()
print 'Hora da atualização:', status.atualizacao.time()
print 'País:', status.pais
print 'Estado:', status.estado
print 'Cidade:', status.cidade
print 'Agência:', status.agencia
print 'Situação:', status.situacao
print 'Observação:', status.observacao
print