Skip to main content

Library for obtaining cnpj information via scraping from the receitaws website.

Project description

cnpjinfo

cnpjinfo is a library for obtaining cnpj information via scraping from the receitaws website.

Features

  • CNPJ information via receitaws website.

Installation

  • Run pip install cnpjinfo

Exxemple

from cnpjinfo import cnpjinfo

# For one CNPJ
info = cnpjinfo('12345678901234')
nome = info.get('nome')
tel = info.get('telefone')
print (f'Nome: {nome}, Tel: {tel}'))

# For CNPJ list
cnpj_list = [ "05720854000166", "00623904000173", "15436940000103" ]
result = cnpjinfo_list(cnpj_list)
for cnpj in result:
    info = cnpjinfo('12345678901234')
    nome = info.get('nome')
    tel = info.get('telefone')
    print (f'Nome: {nome}, Tel: {tel}'))

console output

foo@bar:~$ ./myscript.py
Nome: COMPANY NAME., Tel: (11) 1111-1111
foo@bar:~$ 

Upgrade

- Run `pip install cnpjinfo --upgrade`

Download files

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

Source Distribution

cnpjinfo-0.0.3.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

cnpjinfo-0.0.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file cnpjinfo-0.0.3.tar.gz.

File metadata

  • Download URL: cnpjinfo-0.0.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for cnpjinfo-0.0.3.tar.gz
Algorithm Hash digest
SHA256 0db2d6af716b8cbb00a5514ec6f5a7acd453cefc8a93451316ee94e5b455d8d9
MD5 1c45dcb1599e6af149bc15cb9c870991
BLAKE2b-256 1cd001edcf4ca5bed0e9f68664cc82a4f402c5c6197a8c49983b2980d1fe9f11

See more details on using hashes here.

Provenance

File details

Details for the file cnpjinfo-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: cnpjinfo-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for cnpjinfo-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ecb7ae45ad0ae34b38b07ed54af314aa67c4274f6e8b30dd18e4d523066df38a
MD5 7efee3c3c0db67eeda832c9086bd5c43
BLAKE2b-256 dc3d0f17f890574cd63405e3b97b21ce51a52ae8914d7b83464abc5000223750

See more details on using hashes here.

Provenance

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