Pesquisa de CEPs via site dos Correios
Project description
Esta biblioteca acessa o site dos Correios para fazer pesquisa por CEP.
USO
>>> from cep import Correios >>> c = Correios() >>> resultados = c.consulta('Juarez') >>> len(resultados) 100 >>> resultados[64] {'Localidade': u'Jo\xe3o Pessoa', 'Bairro': u'Torre', 'UF': u'PB', 'Logradouro': u'Avenida Juarez T\xe1vora - de 1147/1148 a 1911/', 'CEP': u'58040-021'} >>> c.detalhe(64) {'Localidade': u'Jo\xe3o Pessoa', 'Bairro': u'Torre', 'UF': u'PB', 'Logradouro': u'Avenida Juarez T\xe1vora - de 1147/1148 a 1911/1912', 'CEP': u'58040-021'} >>> c.consulta('91370000', primeiro=True) {'Localidade': u'Porto Alegre', 'Bairro': u'Vila Ipiranga', 'UF': u'RS', 'Logradouro': u'Rua Alberto Silva - at\xe9 965/966', 'CEP': u'91370-000'}
REQUIREMENTS
BeautifulSoup
LICENSE
MIT License
TODO
Documentação
Criar setup.py e registrar no PyPi
Hospedar API pública (json/xml)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cep-0.1.1.tar.gz
(2.9 kB
view details)
File details
Details for the file cep-0.1.1.tar.gz
.
File metadata
- Download URL: cep-0.1.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bce0359c2d3919cdc74dba6eff9ff635318446fb758cbf687ef410ad24c0097 |
|
MD5 | ed9efb6aa625a62651a31322bbc52769 |
|
BLAKE2b-256 | 98a51988ade3867cb45b8d51fd3a0d9f58c89c06c9b78241d0e0785eb388aaf3 |