correios-api-py

API Python para obter informacoes de encomendas/Sedex dos Correios
Download

correios-api-py Ranking & Summary

Advertisement

  • Rating:
  • License:
  • The Apache License 2.0
  • Price:
  • FREE
  • Publisher Name:
  • Guilherme Chapiewski
  • Publisher web site:
  • http://guilhermechapiewski.github.com

correios-api-py Tags


correios-api-py Description

API Python para obter informacoes de encomendas/Sedex dos Correios correios-api-py is a Python API to track orders from post office.This API makes requests and parse the HTML of the post office site to provide information about orders.Example Usage:import mail from Post Officeencomenda = Correios.encomenda("ES446391025BR") order Correios.encomenda = ("ES446391025BR)print encomenda.numero print encomenda.numerofor status in encomenda.status: status is in encomenda.status: print "Data: %s" % status.data print "Date:% s"% status.data print "Local: %s" % status.local print "Location:% s"% status.local print "Situacao: %s" % status.situacao print "Location:% s"% status.situacao print "Detalhes: %s" % status.detalhes print "Details:% s"% status.detalhes print printAnother way to use helpful:order Correios.encomenda = ("ES446391025BR) ultimo = encomenda.ultimo_status_disponivel() last = encomenda.ultimo_status_disponivel () print "%s, %s, %s" % (ultimo.data, ultimo.local, ultimo.situacao) print "% s,% s,% s"% (ultimo.data, ultimo.local, ultimo.situacao)Tracking numbers for testOther numbers in order to test: * RO811226537BR RO811226537BR * EC834786906BR EC834786906BR * SO376590583BR SO376590583BR * EC884014459BR EC884014459BR * EC726225124BR EC726225124BRHow to install?For the source code:Download the source code here on GitHub, do unzip / untar the file, go to the directory where the code was extracted and type in the command-line:sudo python setup.py install For PyPI (easier):You can also install the latest stable release by PyPI typing on the command-line:sudo easy_install correios-api-py Requirements: · Python


correios-api-py Related Software