Skip to main content

Web scraping da Disponibilidade dos Webservices da Sefaz através do portal NFe.

Project description

Disponibilidade NFe

Test

Projeto de Web scraping para verificar a disponibilidade dos Webservices de todas as Secretarias de Fazenda (Sefaz) emitente de Nota Fiscal Eletrônica (NFe) através do Portal Nacional da NFe: http://www.nfe.fazenda.gov.br/portal/disponibilidade.aspx

Instalar

$ poetry install

Rodar testes

$ poetry run tox

Exemplos

from disponibilidade_nfe.nfe import DisponibilidadeNFe

disp_nfe = DisponibilidadeNFe()
print(disp_nfe.get_status())

Resultado:

[
    {
        'autorizador': 'AM',
        'autorizacao': 'verde',
        'retorno_autorizacao': 'verde',
        'inutilizacao': 'verde',
        'consulta_protocolo': 'verde',
        'status_servico': 'verde',
        'tempo_medio': '-',
        'consulta_cadastro': '',
        'recepcao_evento': 'verde',
        'ultima_verificacao': '23/11/2021 23:06:31'
    }, {
        'autorizador': 'BA',
        'autorizacao': 'verde',
        'retorno_autorizacao': 'verde',
        'inutilizacao': 'verde',
        'consulta_protocolo': 'verde',
        'status_servico': 'verde',
        'tempo_medio': '-',
        'consulta_cadastro': 'verde',
        'recepcao_evento': 'verde',
        'ultima_verificacao': '23/11/2021 23:06:31'
    }, {
        ...
    }
]

License

This package is licensed under MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

disponibilidade-nfe-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

disponibilidade_nfe-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file disponibilidade-nfe-0.1.0.tar.gz.

File metadata

  • Download URL: disponibilidade-nfe-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.7.3 Linux/5.10.60.1-microsoft-standard-WSL2

File hashes

Hashes for disponibilidade-nfe-0.1.0.tar.gz
Algorithm Hash digest
SHA256 48f607983aff7c11f337e9809b6a68b5ac295b6308af7b6792f448f347b7308b
MD5 72f59d8d35076ebe6ca7822ca3b2316b
BLAKE2b-256 9e592e020d15235d96926a74c815fe0b58564f607d53ca943c49eec2fca1b082

See more details on using hashes here.

File details

Details for the file disponibilidade_nfe-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: disponibilidade_nfe-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.11 CPython/3.7.3 Linux/5.10.60.1-microsoft-standard-WSL2

File hashes

Hashes for disponibilidade_nfe-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 da91a09229eb7044493548c86e223ff585aec399c38a366e008c3e164adf82c0
MD5 48ca6d7bf251447c756cfbc30724b48d
BLAKE2b-256 556e14c6f48bd8f720429fa8ceb7e4b8d8e2ce7ed4951deea687cd7c48c59fc6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page